今天尝试一下Springboot整合shiro,参照一个案例做的,完成是报错:bean named 'shiroFilterFactoryBean' that could not be found。然后修改了下pom的依赖,由shiro-spring-boot-web-starter改为shiro-spring问题解决。反正其原因就好像是bean无法自动注入.找了下度娘网上有一篇(Shiro踩坑记(一):关于shiro-spring-boot-web-starter自动注解无法注入authorizer的问题)的帖子,虽然不完全一样,但也也是剖析了注入问题.用shiro-spring-boot-web-starter的时候用@Bean(name="**")@@Qualifier("**")方式直接就会报错.
springboot整合shiro bean named ‘shiroFilterFactoryBean‘ that could not be found
最新推荐文章于 2024-03-06 01:54:28 发布