摘要: 1.@Configuration 修饰类,声明当前类是一个配置类,相当于applicationContext.xml文件 2.@ComponentScan 用于指定spring在初始化容器时要扫描的包。作用和在spring的xml配置文件中的: <context:component-scan bas 阅读全文
posted @ 2020-04-08 01:12 yuer! 阅读(460) 评论(0) 推荐(0)