The type org.springframework.jms.JmsException cannot be resolved报错解决

在调用JmsTemplate的send方法时,一直报编译时异常。如下:

异常提示是无法解析org.SpringFrawork.jms.JmsException类型。如下:

The type org.springframework.jms.JmsException cannot be resolved. It is indirectly referenced from required .class files

 

使用了一个简单粗暴的做法:

  1、删掉maven下面的所有包

  2、重现maven->update Project

  

posted @ 2018-04-26 13:47  仅此而已-远方  阅读(1403)  评论(0编辑  收藏  举报