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:
Dave Syer
2016-04-25 17:44:31 +01:00
parent d0696be642
commit f95fc8d93a

View File

@@ -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();
}