问题描述
SpringBoot + Shiro + Swagger 配置完成,启动项目抛出如下错误信息:
Description:
The dependencies of some of the beans in the application context form a cycle:
objectMapperConfigurer defined in class path resource [springfox/documentation/spring/web/SpringfoxWebMvcConfiguration.class]
↓
authorizationAttributeSourceAdvisor defined in class path resource [org/apache/shiro/spring/boot/autoconfigure/ShiroAnnotationProcessorAutoConfiguration.class]
┌─────┐
| securityManager defined in class path resource [com/bbzd/mes/shiro/config/ShiroConfig.class

本文针对SpringBoot项目使用Shiro结合Swagger时出现的循环依赖问题进行了详细解析,并给出了具体的解决方法。
最低0.47元/天 解锁文章
6725

被折叠的 条评论
为什么被折叠?



