摘要:
Spring中的新注解: @Configuration: 作用:指定当前类是一个配置类 细节:当配置类作为AnnotationConfigApplicationContext对象创建的参数时, 该注解可以不写 @ComponentScan: 作用:用于通过注解指定spring在创建容器时要扫描的包 阅读全文
posted @ 2020-08-11 01:26
别团等shy哥发育
阅读(24)
评论(0)
推荐(0)
摘要:
1. 测试类中的问题和解决思路: 1.1 问题: 在测试类中,每个测试方法都有以下两行代码: ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml"); IAccountService as = ac.getBean 阅读全文
posted @ 2020-08-11 01:16
别团等shy哥发育
阅读(23)
评论(0)
推荐(0)

浙公网安备 33010602011771号