我通過org.springframework.jms.core.JmsTemplate
將org.springframework.messaging.support.GenericMessage
發送到ActiveMQ中的隊列。在ActiveMQ中,我看到這條消息:
無法從activeMQ中的內容構建主體 - 使用的彈簧通用消息
Cannot display ObjectMessage body. Reason: Failed to build body from content.
Serializable class not available to broker.
Reason: java.lang.ClassNotFoundException: org.springframework.messaging.support.GenericMessage
,所以我不能讀取的客戶端消息。 我在我的activeMQConnectionFactory中將trustAllPackages設置爲true,並且問題沒有解決。如何解決它?