Action: Consider defining a bean named ‘authenticator‘ in your configuration.
错误描述
今天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.
原因
- 我认为是依赖不兼容
解决办法
报错依赖
org.apache.shiro
shiro-spring-boot-starter
1.4.0 将报错依赖改为:
org.apache.shiro
shiro-spring
1.4.0
还没有评论,来说两句吧...