随笔分类 -  JavaEE

摘要:使用GZIP进行数据压缩传输实验,服务端是J2EE,使用HTTP的POST方式进行数据请求。为了方便测试,刚开始在J2EE的环境下写了一个TestCase去调用J2EE写的服务,忘记写GZIP解压代码,数据居然能够正常解压。好!因为服务是最终提供给android端来调用的,所以改换成android客... 阅读全文
posted @ 2015-02-04 21:34 jaenson 阅读(983) 评论(0) 推荐(0)
摘要:在执行Hibernate的Update操作时,报错:a different object with the same identifier value was already associated with the session。原因:在hibernate中同一个session里面有了两个相同标识但是是不同实体。通常来说,使用session的merge(object)便可以解决。但也有其他令几种方式供参考:1、a different object with the same identifier value was already associated with the session。 . 阅读全文
posted @ 2013-10-18 11:22 jaenson 阅读(456) 评论(0) 推荐(1)