解决ehcache的UpdateChecker问题
来源:互联网 发布:皮尔斯生涯数据 编辑:程序博客网 时间:2024/05/21 22:44
解决ehcache的UpdateChecker问题
问题描述
项目中用了ssh框架,每次启动tomcat的时候都特别慢,会在这样一句话下面停留很久
[2016-01-08 23:55:51,517 INFO UpdateChecker.java:doCheck:98] ---- New update(s) found: 2.6.5 [http://www.terracotta.org/confluence/display/release/Release+Notes+Ehcache+Core+2.6]. Please check http://ehcache.org for the latest version.
原来是hibernate用了ehcache,ehcache会默认去自己网站查询更新。
解决思路
我去bing中搜索解决办法,搜到的大部分都是如下内容:
解决问题,修改配置,关闭更新检测:打开 ehcache.xml 将第一行 <ehcache> 的属性 updateCheck 改为false,如下:<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ehcache.xsd" updateCheck="false">
可是我根本就没有用ehcache啊,根本找不到这个配置文件。自己尝试着去加这个配置文件,配置了好一会,都没有成功。
最终解决办法
看来思路是对的,但是要绕弯。我又仔细看了一下log输出,看到这样一句话:
No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/SourceCode/WebRoot/WEB-INF/lib/spring/ehcache-core-2.5.2.jar!/ehcache-failsafe.xml
也就是说,这个配置文件打在了jar包里面。这就好办了:
1. 解压缩这个jar文件2. 修改文件ehcache-failsafe.xml,如上面所说3. 把目录打成zip文件,ehcache-core-2.5.2.zip4. 把上面的zip文件重命名为ehcache-core-2.5.2.jar,覆盖原文件,搞定。
0 0
- 解决ehcache的UpdateChecker问题
- 解决:<net.sf.ehcache.util.UpdateChecker> : New update(s) found: 2.6.5
- Tomcat每次启动出现net.sf.ehcache.util.UpdateChecker doCheck
- 使Grails程序的Ehcaches UpdateChecker失效
- Ehcache缓存的清理问题
- ehcache cacheManager重复的问题
- JMS异步消息解决分布式应用的EhCache缓存同步问题
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- 如何通过2级缓存解决性能问题(ehcache)
- spring Ehcache启动报错的问题
- ehcache版本问题导致的一个错误
- ehcache作为Mybatis二级缓存的问题
- Hibernate4 + Ehcache 配置问题
- Hibernate4 + Ehcache 配置问题
- Hibernate4 + Ehcache 配置问题
- ehcache版本问题
- Hibernate4 + Ehcache 配置问题
- easyui重置按钮的三种方法
- UIFont 设置字体
- 读取文件夹里面的图片生成对应的txt
- 浅谈C中的malloc和free
- C语言 良乡足球场 割草机问题
- 解决ehcache的UpdateChecker问题
- 电脑忘记密码怎么办的解决方法
- C语言宏定义用do{}while(0)的情况
- 迷宫游戏 51Nod
- 基于Dragonboard 410c的PMIC简介
- Spring Boot Rest Service 下载文件
- C++ static类成员
- 欢迎使用CSDN-markdown编辑器
- zkw线段树详解