摘要: Import可以像类似于@Component此功能的注解一样,在容器启动的时候将此类定义为一个bean,并将此bean交于容器管理,但此用法较少。 在Spring boot中实现自己一些比较复杂的Bean时, 并且注入到Spring容器中的一些方法 1. @ComponentScan注解 2. 使用 阅读全文
posted @ 2019-05-08 09:26 龘人上天 阅读(266) 评论(0) 推荐(0) 编辑