`
@Autowired
WebApplicationContext wac;
wac.getParent(); // => null
`
原来spring有个父子容器的概念,父容器(ContextLoaderListener)用于bean创建等,子容器(DispatcherServlet)用于Controller、Intercepter等处理,但springboot中是否没有这个概念了?
`
@Autowired
WebApplicationContext wac;
wac.getParent(); // => null
`
原来spring有个父子容器的概念,父容器(ContextLoaderListener)用于bean创建等,子容器(DispatcherServlet)用于Controller、Intercepter等处理,但springboot中是否没有这个概念了?