会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
雷雨客
博客园
首页
新随笔
联系
订阅
管理
2019年11月18日
SpringBoot使用EnableAutoConfiguration与spring.factories装配其它模块的bean
摘要: Spring Boot使用EnableAutoConfiguration和spring.factories解决了在一个模块中把其它模块的类装配成bean的问题 一、怎样实现 1、配置文件中enableautoconfiguration设置为true(默认为true) 2、引入其它模块的依赖 3、在其
阅读全文
posted @ 2019-11-18 22:53 雷雨客
阅读(1397)
评论(0)
推荐(0)