Action:Consider defining a bean named ‘authenticator‘ in your configuration.

错误描述 今天Springboot 整合 Shiro 抛出如下错误: ***************************APPLICATION FAILED TO START****************

错误描述

  • 今天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>

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738336707a4038997.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信