原文:java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context 错误

spring boot 项目启动报错:原因一般是注入了相同名字的service 说是在项目中有了相同的 Overriding bean definition for bean restTemplate ,原来是在我的这个项目的pom文件中引用了另一个项目,另一个项目也注入有restTemplate,导致启动报错。把本项目中的引用的另一个项目删除就解决了。 ...

2018-08-16 18:07 0 9477 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM