SpringMVC整合ehcache报错:Multiple annotations found at this: -cvc-complex 'ehcache:annotation-driven'

来源:互联网 发布:zanti网络渗透工具 编辑:程序博客网 时间:2024/06/07 01:05

1、将ehcache-spring-annotations-1.2.0.jar拷贝到项目的lib目录下;
2、选择elcipse的window-->preferences->xml->XML Catalog,点击进入;
3、选择User Specified Entries,单击添加,然后, 在弹出的对话框相应位置填入
Location: 项目名称/src/main/webapp/WEB-INF/lib/ehcache-spring-annotations-1.2.0.jar!/com/googlecode/ehcache/annotations/ehcache-spring-1.1.xsd

Key Type: Schema Location
Key: http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring

4、重复3操作,相应位置填入
Location: 项目名称/src/main/webapp/WEB-INF/lib/ehcache-spring-annotations-1.2.0.jar!/com/googlecode/ehcache/annotations/ehcache-spring-1.1.xsd
Key Type: Schema Location
Key: http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.xsd


至此,便可解决。
注:项目名称换成自己的工程名

0 0
原创粉丝点击