Error creating bean with name 'authenticationSuccessServlet': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; 情景: 我自定义了一个spring security中的Authenticati…
前言 本系列全部基于 Spring 5.2.2.BUILD-SNAPSHOT 版本.因为 Spring 整个体系太过于庞大,所以只会进行关键部分的源码解析. 本篇文章主要介绍 Spring IoC 容器是怎么加载 bean 的. 正文 我们先看一下Spring IoC BeanDefinition 的加载和注册一文中获取 bean 的实例代码: public class BeanDefinitionDemo { public static void main(String[] args) { D…