随笔分类 - JavaEE
摘要:使用GZIP进行数据压缩传输实验,服务端是J2EE,使用HTTP的POST方式进行数据请求。为了方便测试,刚开始在J2EE的环境下写了一个TestCase去调用J2EE写的服务,忘记写GZIP解压代码,数据居然能够正常解压。好!因为服务是最终提供给android端来调用的,所以改换成android客...
阅读全文
摘要:在执行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。 .
阅读全文
浙公网安备 33010602011771号