|
|
@ -18,7 +18,6 @@ package org.springframework.boot.autoconfigure.web;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
import com.google.gson.Gson;
|
|
|
@ -220,10 +219,6 @@ public class HttpMessageConvertersAutoConfigurationTests {
|
|
|
|
RepositoryRestMvcConfiguration.class,
|
|
|
|
RepositoryRestMvcConfiguration.class,
|
|
|
|
HttpMessageConvertersAutoConfiguration.class);
|
|
|
|
HttpMessageConvertersAutoConfiguration.class);
|
|
|
|
this.context.refresh();
|
|
|
|
this.context.refresh();
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, MappingJackson2HttpMessageConverter> beansOfType = this.context
|
|
|
|
|
|
|
|
.getBeansOfType(MappingJackson2HttpMessageConverter.class);
|
|
|
|
|
|
|
|
System.out.println(beansOfType);
|
|
|
|
|
|
|
|
BeanDefinition beanDefinition = this.context
|
|
|
|
BeanDefinition beanDefinition = this.context
|
|
|
|
.getBeanDefinition("mappingJackson2HttpMessageConverter");
|
|
|
|
.getBeanDefinition("mappingJackson2HttpMessageConverter");
|
|
|
|
assertThat(beanDefinition.getFactoryBeanName()).isEqualTo(
|
|
|
|
assertThat(beanDefinition.getFactoryBeanName()).isEqualTo(
|
|
|
|