摘要:
一、AnnotationConfigServletWebServerApplicationContext Spring boot 中 servlet web 环境容器(新) 1、场景利用AnnotationConfigServletWebServerApplicationContext 手写一个简单 阅读全文
posted @ 2022-04-01 23:05
KwFruit
阅读(127)
评论(0)
推荐(0)
摘要:
一、ClassPathXmlApplicationContext:从类路径查找 XML 配置文件,创建容器(旧) 1、代码 /** * 较为经典的容器,基于classpath 下xml格式配置文件来创建 */ private static void testClassPathXmlApplicati 阅读全文
posted @ 2022-04-01 23:03
KwFruit
阅读(95)
评论(0)
推荐(0)
摘要:
一、@Autowired 和 @Resource(name = "bean4") 同时存在,会优先注入哪个bean? 1、代码 package com.mangoubiubiu.show; import lombok.extern.slf4j.Slf4j; import org.slf4j.Logg 阅读全文
posted @ 2022-04-01 22:58
KwFruit
阅读(68)
评论(0)
推荐(0)

浙公网安备 33010602011771号