Revert @Bean to return concrete type despite its not being visible
The BusJacksonMessageConverter is package private so it shouldn't have any influence outside that package, but apparently it does and the MessageConverter gets clobbered by Spring Cloud Stream. This reverts the change and makes bus apps work again.
This commit is contained in:
@@ -22,7 +22,6 @@ import org.springframework.core.type.classreading.CachingMetadataReaderFactory;
|
||||
import org.springframework.core.type.classreading.MetadataReader;
|
||||
import org.springframework.core.type.classreading.MetadataReaderFactory;
|
||||
import org.springframework.messaging.Message;
|
||||
import org.springframework.messaging.converter.MessageConverter;
|
||||
import org.springframework.util.ClassUtils;
|
||||
import org.springframework.util.MimeTypeUtils;
|
||||
|
||||
@@ -40,7 +39,7 @@ import com.fasterxml.jackson.databind.SerializationFeature;
|
||||
public class BusJacksonAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public MessageConverter busJsonConverter() {
|
||||
public BusJacksonMessageConverter busJsonConverter() {
|
||||
return new BusJacksonMessageConverter();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user