`
www-hello
  • 浏览: 98788 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
 wsdl2java工具: Usage : wsdl2java -fe|-frontend <front-end-name> -db|-databinding <data-binding-name> -wv <wsdl-version> -p <[wsdl-namespace =]package-name>* -sn <service-name> -b <binding-file-name>* -reserveClass <class-name>* -catalog <catalog-file ...
struts2中的set标签,value是个变量的名字,相当于给value中的变量生成一个指定scope变量,主要用于:   1.the complex expression takes time (performance improvement)   性能改进   2.the complex expression is hard to read (code readability improvement)  改善 代码的可读性   jstl中的set标签中的value设置的是个值,将 value的值储存至varName变量中。   例:   <s ...
For循环 遍历arrays或array-like对象(如:arguments、HTMLCollection) // sub-optimal loop for (var i = 0; i < myarray.length; i++) { // do something with myarray[i] } 每次循环都会去访问myarray的长度,因此会降低效率,尤其myarray不是array而是HTMLCollection时。HTMLCollection对象如: document.getElementsByName() document.getElementsByClass ...
1.       单一 var 模式: 在函数体的最上部只使用一个 var 声名变量,好处:        a)       只在一个地方提供函数中使用的所有的变量        b)       阻止因变量没有声名就被使用所引起的逻辑错误        c)       能够帮助你想到要声名变量,因此可以最小化全局变量        d)       减少代码量   样式: function func() { var a = 1,
1.        全局变量: myglobal = "hello"; // antipattern console.log(myglobal); // "hello" console.log(window.myglobal); // "hello" console.log(window["myglobal"]); // "hello" console.log(this.myglobal); // "hello" ...
计算出给定日期所在周的周一和周日   结果类: import java.util.Date; public class Week { private Date date; //日期 private Date start; //date所在周的第一天(星期一) private Date end; //date所在周的最后一天(星期日) public Week(Date date){ this.date = date; } public Date getDate() { return date; } public void set ...
官方getting start指导:5 minutes application integration tutorialhttp://jcaptcha.octo.com/confluence/display/general/5+minutes+application+integration+tutorial   新建Maven工程:   输入项目名称等选项:     添加dependiencies     添加完之后在重新生成Maven工程的时候出现下面的错误:     Missing artifact com.jhlabs:imaging:jar:0101 ...
原文地址:http://docs.jquery.com/Plugins/Autocomplete/autocomplete     autocomplete ( url or data, [ options] ) Options: autoFill Boolean Default: false Fill the textinput while still selecting a value, replacing the value if more is typed or something else is selected. ...
原文地址: Don't Use System.out.println! Use Log4j Home: www.vipan.com Vipan Singla e-mail: vipan@vipan.com Don't Use System.out.println! Use Log4j Quick Start to Using Log4j Download the Log4j software (about 2.3MB as of log4j 1.1.3) and extract log4j ...

nexus

1. 使用Nexus 中央代理仓库(配置Maven Settings [~/.m2/settings.xml]) <?xml version="1.0"?> <settings> ... <mirrors> <mirror> <id>Nexus</id> <name>Nexus Public Mirror</name> <url>http://localhost:8081/nexus/content/groups/public</url> ...
1. Maven Dependency 插件能够帮助你发现对于依赖的直接引用 dependency:analyze 2. 列出项目中所有的直接和传递性依赖 dependency:tree 3. 排除并替换一个传递性依赖 <dependencies> <dependency> <groupId>org.hibernate</groupId> <ar ...
1.    新建任务类TestQuarz: package net.test.quarz.timer; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class TestQuarz { private static DateFormat df = new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss ]"); public void sayHello(){ Sy ...
修改Web.xml,增加如下内容: <web-app ……> <listener> <listener-class>org.springframework.web.context.request. RequestContextListener</listener-class> </listener> </web-app> Spring 配置文件: <bean id="sessionBean" class="test.SessionBe ...
1 .Flex4中全屏: 在页面中(比方头部页面)中添加creationComplete事件处理:creationComplete="init();"   [Bindable] private var fullScreenBtnLabel:String = "全屏"; private function init():void{ stage.addEventListener(FullScreenEvent.FULL_SCREEN,function(event:FullScreenEvent):void { fullScreenB ...
     在Flex开发中,Flex端后台(Java)时,不仅要在前台根据权限对一些功能进行屏蔽限制,也要在后台进行拦截,下面使用spring的aop和自定义annotation来演示登录管理功能。     自定义annotation: AuthLogin,为了对一些不需要登录验证的方法进行标记。   package test.auth; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolic ...
Global site tag (gtag.js) - Google Analytics