问题1
application.xml报错:
Description Resource Path Location Type XML document structures must start and end within the same entity.
applicationContext-mq.xml /bos_fore/src/main/resources line 3949 Spring Beans Problem
解决方案:
检查是否导入了spring-tx包;
问题2:如果修改了以上错误后,继续报错:
Description Resource Path Location Type
Error occured processing XML 'org/springframework/transaction/event/TransactionalEventListenerFactory'.
解决方案:
此时如果spring-context包的版本比spring-tx的版本低的话,则会报如上错误,所以很简单,只需要更改两个包的版本中的任意一个,就行了