摘要: Spring Boot使用EnableAutoConfiguration和spring.factories解决了在一个模块中把其它模块的类装配成bean的问题 一、怎样实现 1、配置文件中enableautoconfiguration设置为true(默认为true) 2、引入其它模块的依赖 3、在其 阅读全文
posted @ 2019-11-18 22:53 雷雨客 阅读(1397) 评论(0) 推荐(0)