微服务
文章平均质量分 92
依然是那个墨镜
这个作者很懒,什么都没留下…
展开
-
一个诡异的A component required a bean of type异常
A component required a bean of type 'org.springframework.security.authentication.AuthenticationManager' that could not be found. springboot的主启动类,与包下各个组件的加载问题。因为启动类上面的@SpringBootApplication里面默认包含了一个@ComponentScan注解,这个注解默认情况下是扫描该类所属包下面的所有类,包含子目录中的类。原创 2022-10-22 18:35:04 · 21670 阅读 · 1 评论 -
springcloud的微服务的设计方案一:gateway+springsecurity+session共享
这个方案是利用spring security的session共享机制,进行认证和鉴权。同时,这个方案也没有将springsecurity集成在springcloud gateway中,而是作为共通组件,集成在认证和业务类型的微服务中。原创 2022-10-22 21:20:38 · 2526 阅读 · 1 评论