ssh
superdcj
这个作者很懒,什么都没留下…
展开
-
hibernate id generator
Generator The optional child element names a Java class used to generate unique identifiers for instances of the persistent class. If any parameters are required to configure or initialize the原创 2013-02-19 13:01:08 · 432 阅读 · 0 评论 -
spring hibernate.hbm2ddl.auto 不生效
项目是从韩顺平老师的源码,拿来自己改。 发现后来是因为配置了 hibernate.generate_statistics=true ,去掉就行了。 花了将近一个小时原创 2013-02-19 10:30:54 · 1565 阅读 · 0 评论 -
struts2 文件上传实例
一个简单的struts2,文件上传,搞了2个小时,恼火,受到官网上的cookbook的坑害,还是老老实实看书最后搞定,说说几点经验: 1.最重要的action中的三个属性,private File doc;private String docContentType;private String docFileName; doc为表单中file的name 否则会接收不到 2.可以在str原创 2013-10-23 16:44:07 · 698 阅读 · 0 评论