2010-10-26

Maven在release时跳过测试

在运行mvn release:prepare时,可以加上-DpreparationGoals=clean 参数。这样就不会运行测试了。

2010-10-23

SQLServer dbunit问题

用dbunit给SQLServer自增列增加指定的数据时,会出现错误:当 IDENTITY_INSERT 设置为 OFF 时,不能向表 'xxx' 中的标识列插入显式值。可以修改CLEAN_INSERTMSSQL_CLEAN_INSERT

2010-09-23

postgresql的locale

安装postgresql时,也没有找到文档在windows下到底支持哪些locale。反正安装的时候,用initdb时,自动检测的Chinese (Simplified)_Peoples Republic of China.936是不对的,使用chinese-simplified_china.936好像就可以了,用其它的地方看到的Chinese,zh_CN或Chinese,gb18030都试了一下,也是可以的。我自己使用后面这两种写法新建的数据库排序也没有什么大的问题,中文排序正常。只是英语排序,a与A在都在b与B前面。

2010-04-19

Sybase问题(转)

在使用Sybase时,如果出现The 'CREATE TABLE' command is not allowed within a multi-statement transaction in the 'tempdb' database.错误时,
可以在tempbd上选中以下两个选项。

sp_dboption tempdb, 'ddl in tran', true

sp_dboption tempdb, 'allow nulls by default', true


原贴:
http://darmee.itpub.net/post/12147/495080

2010-04-03

在JSP中使用${xxx}没有效果

在学习Struts2过程中,使用例子中的

<s:url action="hello" var="helloLink">
<s:param name="userName">Bruce Phillips</s:param>
</s:url>
<p><a href="${helloLink}">Hello Bruce Phillips</a></p>

可是在结果中,总是
<a href="view-source:http://localhost:8080/struts2/${helloLink}">${helloLink}</a>
以为是Struts2配置或其它问题,找了好久都没有找到原因,后来才搞清楚,因为我使用Maven的maven-archetype-webapp生成的web项目,这个项目生成web.xml使用的是2.3web配置,换成2.4就没有问题了。原因2.3一般是不支持EL表达式的。