摘要: 一、@Configuration和@Bean 1.使用XML配置文件注入bean 在工程的src/main/resources目录下创建Spring的配置文件,例如beans.xml,通过该配置文件将Person类注入到Spring的IOC容器中,最后创建一个MainTest类来进行测试。 Pers 阅读全文
posted @ 2021-02-19 23:17 nxf_rabbit75 阅读(209) 评论(0) 推荐(0)