ehcache.xml找不到路径
ehcache 要求将 ehcache.xml 放在类路径的根下面,检查的方法是,看一下 WEB-INF/classes 下面是否存在该文件。
解决办法
maven的pom.xml中加入如下代码
<build>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
</build>
报错
Caused by: java.io.FileNotFoundException: class path resource [ehcache.xml] cannot be opened because it does not exist