A component required a bean of type
'org.springframework.messaging.simp.SimpMessagingTemplate' that could not be found.
找不到jar包的情况,一般都是在pom.xml 添加,然后刷新maven,
这个报错找了一会jar包,可是不是jar包的问题,
于是全局搜索用到这个类的地方,把它注释掉 !
import org.springframework.messaging.simp.SimpMessagingTemplate;
然后没事了

本文介绍了如何解决在Spring项目中出现的SimpMessagingTemplate类未找到的问题。通过全局搜索并注释掉该类的导入语句,成功解决了错误。
1934

被折叠的 条评论
为什么被折叠?



