一

{"type":"编程笔记"}


  • Home

  • Archives
  • Search

spring的属性编辑器customdateeditor及日期对象转化

Posted on 2010-12-19   |   In java

在spring mvc的Controller中,属性在通过依赖注入(DI)时,普通数据类型都能够辨识。但诸如Date之类,就需要自定义属性编辑器解决。否则报如下错误:

Read more »

comments including two dashes in a row render bug on firefox3

Posted on 2010-12-19   |   In web

在一段注释代码中,如果出现了--这样二个连续的连字符,出导致firefox3解析出错。

Read more »

javascript中array方法调用返回window对象

Posted on 2010-12-19   |   In javascript

array中的很多方法通过call和apply调用时会返回window对象,如下写法在firefox、chrome等浏览器中会取到window对象:

Read more »

用maven来运行一个main方法或者启动server

Posted on 2010-11-27   |   In java

在maven项目的pom.xml文件的plugins中加入exec-maven-plugin这个插件,这个在运行mvn package时,会在当前的mvn进程中直接执行指定的class文件的main方法,也可以配置其他的参数,让此main在另一个java进程中启动。

如果其中将phase的内容改为test,就会在运行mvn test时执行main方法,也可以在命令行里直接用mvn运行,如下注释说明。

更详细的信息和配置方法,可参考http://mojo.codehaus.org/exec-maven-plugin/usage.html说明。

Read more »

maven2 repository server install

Posted on 2010-11-27   |   In java

nexus maven2安装

以下为安装免费版本的nexus maven2服务器和简单的设置过程:

Read more »
1…444546…99
yuweijun

yuweijun

492 posts
12 categories
RSS
GitHub Twitter
© 2021 yuweijun
Powered by Hexo
Theme - NexT.Mist.KISS