解决:java.lang.IllegalStateException: ApplicationEventMulticaster not initialized
1.springboot 项目启动时报错:java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: star...
·
前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到教程。
1. springboot 项目启动时报错:
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Tue Jul 18 14:49:33 CST 2018]; root of context hierarchy
2. 原因、解决:
改了包名,以至于扫描包时找不到原路径。如红框中设置(原本叫 cn.xxx.mapper)。

另:网上看到有情况是 service 的 name 重复、 jar 包冲突或者不完整、少 maven 依赖 ...
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)