前言tomcat7开始,tomcat支持应用的多版本部署,这个特性很不错,尤其是生产环境中,升级应用,无需重启tomcat,升级过程不影响业务。热升级的特性,也只有少数顶级商业中间件能做到。tomcat的并行部署tomcat7开始,可以同时部署相同contextpath的多个不同版本的web应用,现在只能通过tomcatmanager使用WARfiletodeploy,才能做到多版本同时部署。war包的命名只能是context.war,context##2
系统 2019-08-12 01:33:56 2757
EverytimeIstartIgetthefollowinginoutput:Thissolutionisoffline.[TeamFoundationServer:http://jasmine:8080/]ThesolutionisofflinebecauseitsassociatedTeamFoundationServerisoffline.IthenhavetodoFile,SourceControl,ChangeSourceControltwic
系统 2019-08-12 01:33:38 2757
当输入的网页连接传送给LoadURL函数之后,还需要处理很多内容,其实这是由类NavigationController来管理的,NavigationController类主要就是管理加载网页、退回、前进等等控制。#001voidNavigationController::LoadURL(constGURL&url,#002PageTransition::Typetransition){#003//Theuserinitiatedaload,wedon'tn
系统 2019-08-12 01:31:39 2757
importrequestsimportjsonfromtkinterimportTk,Button,Entry,Label,Text,ENDclassYouDaoFanyi(object):def__init__(self):passdefcrawl(self,word):url='http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule'#使用post需要一个链接data={
系统 2019-09-27 17:54:05 2756
JavascriptJavascript11Corejavascript21.1lexicalstructure词汇结构.21.2datatypesandvalues21.2.1numbers31.2.3strings41.2.4booleanvalues61.2.5functions71.2.6objects71.2.7arrays81.2.8null91.2.9undefined91.2.10thedateobject91.2.11regularexp
系统 2019-08-29 23:51:58 2756
Memento备望录模式定义:memento是一个保存另外一个对象内部状态拷贝的对象.这样以后就可以将该对象恢复到原先保存的状态.Memento模式相对也比较好理解,我们看下列代码:publicclassOriginator{publicintnumber;publicFilefile=null;publicOriginator(){}//创建一个MementopublicMementogetMemento(){returnnewMemento(this)
系统 2019-08-29 23:37:41 2756
usingSystem;usingSystem.IO;usingSystem.Text;usingSystem.Collections;namespacePDFGenerator{publicclassPDFGenerator{staticfloatpageWidth=594.0f;staticfloatpageDepth=828.0f;staticfloatpageMargin=30.0f;staticfloatfontSize=20.0f;static
系统 2019-08-29 23:34:12 2756
当我们一个web项目开发已完成,测试也通过了后,就把他放到网上去,但是,bug是测不完的,特别是在一个大的网络环境下。那么,我们就应该记录这些错误,然后改正。这里,我的出错管理页面是在global.asax里面的,因为里面有一个Application_Error函数,我觉得这个就是管理错误的。其实,asp.net里还有一个方法,就是在page里指定出错的页面,由这个页面专门管理,我觉得这个方法也好,但是每次都要到相应的page里指定参数,不过,我觉得应该可
系统 2019-08-29 23:28:44 2756
C#时钟控件的创建与使用
系统 2019-08-29 23:28:34 2756
functionStorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+es
系统 2019-08-29 23:04:56 2756