摘要: 自动装配 @ComponentScan 用于配置Spring需要扫描的被组件注解注释的类所在的包。 @Component 用于标注一个普通的组件类,它没有明确的业务范围,只是通知Spring被此注解的类需要被纳入到Spring Bean容器中并进行管理。 @Autowired Autowired用于 阅读全文
posted @ 2022-07-17 22:05 Bin_x 阅读(403) 评论(0) 推荐(0)