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. 123456789101112
问题原因:
引入shiro版本依赖不兼容
解决办法:
报错时依赖
<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> </depende