1 .net.sf.ehcache.config.configurationfactory - no configuration found. configuring ehcache from ehcache-failsafe.xml found in classpath:
ehcache.xml 无法找到导致
将ehcache.xml拷贝到src目录下解决
2 .[net.sf.ehcache.Cache]-[ERROR] Unable to set localhost. This prevents creation of a GUID. Cause was: hichina.com
java.net.UnknownHostException: hichina.com 未知的名称或服务(不同服务器运营商都不同)
因为DNS无法解析此域名所导致的,做如下修改解决:
#vi /etc/hosts
添加
127.0.0.1 hichina.com
问题解决

本文介绍了如何解决 .net.sf.ehcache.config.configurationfactory-noconfigurationfound 配置问题,通过将 ehcache.xml 文件放置在项目的 src 目录中。此外还解决了因 DNS 无法解析 hichina.com 导致的缓存 GUID 创建失败的问题,提供了修改 /etc/hosts 文件的具体步骤。
1664

被折叠的 条评论
为什么被折叠?



