为了账号安全,请及时绑定邮箱和手机立即绑定

求大佬帮忙

https://img1.sycdn.imooc.com//5b7b6cdf0001538b17490798.jpgorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in URL [file:/F:/imooc-shiro/shiro-web/target/shiro-web-1.0-SNAPSHOT/WEB-INF/classes/spring/spring.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 URL [file:/F:/imooc-shiro/shiro-web/target/shiro-web-1.0-SNAPSHOT/WEB-INF/classes/spring/spring.xml]: Cannot resolve reference to bean 'realm' while setting bean property 'realm'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'realm': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDaoImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.jdbc.core.JdbcTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}

正在回答

1 回答

在web.xml文件中把springmvc.xml文件位置复制一份到如下:

https://img1.sycdn.imooc.com//5b7bcc8c00018e9607660247.jpg

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

求大佬帮忙

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信