Spring boot 和ActiveMQ集成报错:java.io.NotSerializableException

报错详情:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.messaging.converter.MessageConversionException: Could not convert 'GenericMessage [payload=[], headers={id=47e9bb7e-9cf7-5c27-56cd-ac32d60d4a80, timestamp=1558169020521}]'; nested exception is java.lang.RuntimeException: org.springframework.core.type.StandardAnnotationMetadata] with root cause

java.io.NotSerializableException: org.springframework.core.type.StandardAnnotationMetadata

 

Spring boot 和ActiveMQ集成报错:java.io.NotSerializableException

 

 

最后发现是导报错误!

import javax.jms.Queue;导成了import javax.util.Queue;

哭死~~~~~~~~~~~~~~~

Spring boot 和ActiveMQ集成报错:java.io.NotSerializableException