项目启动就报这个错,怎么回事啊

来源:5-2 Shiro会话管理2

蔓茵black

2018-11-24 22:59

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.shiro.web.session.mgt.DefaultWebSessionManager#223b253b' defined in class path resource [spring-shiro.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'sessionDao' of bean class [org.apache.shiro.web.session.mgt.DefaultWebSessionManager]: Bean property 'sessionDao' is not writable or has an invalid setter method. Did you mean 'sessionDAO'?

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1568)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)

... 34 more


写回答 关注

1回答

  • 慕工程9041161
    2018-11-25 19:12:12

    https://img2.mukewang.com/5bfa83560001139508550053.jpg兄弟,英语很重要啊

Shiro安全框架入门

从零入门Shiro安全框架

48036 学习 · 332 问题

查看课程

相似问题