spring-rabbit JSON deserialization for ArrayList contents
问题 I am using Spring-boot with rabbitmq with JSON message serialization. Replies using the Direct-Reply-to feature cannot deserialize my classes inside the java.util.List container. Using my debugger in Jackson2JsonMessageConverter.fromMessage() , the MessageProperties states the __TypeID__ is correctly set to java.util.ArrayList . However the __ContentTypeId__ is java.lang.Object is incorrect as I would be expecting FooDto (I assume...). The exception message is: java.lang.ClassCastException: