![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SSH
tianyulif
这个作者很懒,什么都没留下…
展开
-
Struts2 Json Gson
Struts2 Json Gson 的相关资料。 struts2-json-plugin提供了一个result type为"json",并将它从action序列化到Json,在action里使用annotation 进行序列化和反序列化,一共有4个参数name,serialize,deserialize和format。name就不多说了,serialize为boo...原创 2010-08-30 17:04:51 · 92 阅读 · 0 评论 -
jdbcTemplate
以前一直用hibernateTemplate的,今天看了看spring的jdbcTemplate。 jdbcTemplate就是一个封装了jdbc的模板,直接使用JdbcTemplate很简单,它只依赖于数据源。它的配置就不多说了,文档写的很详细,主要讲讲它的一些常用的方法。 查询数据:RowCallbackHandler public void query(String s...原创 2010-09-16 12:51:34 · 105 阅读 · 0 评论 -
HibernateOptimisticLockingFailureException
今天在项目中遇到这样的错误,提示如下: 1.Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 2.Batch update returned unexpected row count from update [0]; actual row count...原创 2011-04-21 11:23:40 · 289 阅读 · 0 评论