2012年3月29日
摘要: ehcache可以单独使用也可以和hibernate、spring等一起使用。本人今天单独使用,并做些测试,分享经验如下,需要2个包,commons-logging.jar、ehcache-core-2.5.1.jar,最好使用ehcache的高版本,不然会配置文件的某些属性不可用,如maxElementsInMemory等。这个版本需要commons-logging.jar包。先配置xml文件,必须要有defaultCache,代码类似如下,<?xml version="1.0" encoding="UTF-8"?><ehcache 阅读全文
posted @ 2012-03-29 14:17 xiong2012 阅读(5044) 评论(0) 推荐(0)