摘要: Spring中的新注解 @Configuration 作用:指定当前类是一个配置类 细节:当配置类作为AnnotationConfigApplicationContext对象创建的参数时,该注解可以不写,这时系统将直接扫描该配置类。 @ComponentScan 作用:用于通过注解指定spring在 阅读全文
posted @ 2020-08-10 21:40 王者级菜鸟 阅读(203) 评论(0) 推荐(0)