maven 环境下由spring管理的shiro和ehcache项目启动时异常,报出
Caused by: org.springframework.beans.factory.BeanInitializationException: The security manager does not implement the WebSecurityManager interface.
at org.apache.shiro.spring.web.ShiroFilterFactoryBean.createInstance(ShiroFilterFactoryBean.java:434)at org.apache.shiro.spring.web.ShiroFilterFactoryBean.getObject(ShiroFilterFactoryBean.java:343)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
... 42 more
配置文件的错误,shiro的运行核心——安全管理器(org.apache.shiro.web.mgt.DefaultWebSecurityManager)配置错误,应该配置在另外一个shiro所在的文件中,或是整个配置文件出现重复或缺失