java147369 2017-11-08 02:57 采纳率: 0%
浏览 1291

Spring 整合Shiro时报错

图片说明org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [H:\MyWorkSpace-Eclipse.metadata.me_tcat\webapps\Spring_Shiro\WEB-INF\classes\applicationContext-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [H:\MyWorkSpace-Eclipse.metadata.me_tcat\webapps\Spring_Shiro\WEB-INF\classes\applicationContext-shiro.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException

  • 写回答

4条回答 默认 最新

  • Amo_lt 2017-11-08 03:24
    关注

    nested exception is java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
    这里说是这个方法找不到,你反编译看下你这个ehcache包中有没有这个方法,没有的话应该是你包没下好或者包的版本太低.

    评论

报告相同问题?

悬赏问题

  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试