2017年12月19日

Spring boot多模块(moudle)中的一个注入错误(Unable to start embedded container; nested exception is org)

摘要: 主模块中需要的bean在另外一个模块中定义, 但运行时, 无法注入。原因是: SpringBoot约定的bean搜索路径是从@SrpingBootApplication所在在包开始的, 也就是说,所有其它包都必须在这个包之下, 否则SpringBoot启动后,其它包无法找到, 就会导致以上错误。 阅读全文

posted @ 2017-12-19 15:46 大象O无形 阅读(5605) 评论(0) 推荐(1) 编辑

导航