admin 管理员组文章数量: 1086019
错误描述
- 今天Springboot 整合 Shiro 抛出如下错误:
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 0 of method shirFilter in com.bbzd.mes.shiro.config.ShiroConfig required a bean named 'authenticator' that could not be found.
Action:
Consider defining a bean named 'authenticator' in your configuration.
原因
- 我认为是依赖不兼容
解决办法
- 报错依赖
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring-boot-starter</artifactId>
<version>1.4.0</version>
</dependency>
- 将报错依赖改为:
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-spring</artifactId>
<version>1.4.0</version>
</dependency>
本文标签: Bean defining action Configuration authenticator
版权声明:本文标题:Action:Consider defining a bean named ‘authenticator‘ in your configuration. 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://roclinux.cn/b/1738336711a1965986.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论