mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-24 10:19:03 +00:00
Do not set ConversionService on AnnotatedControllerConfigurer
After https://github.com/spring-projects/spring-graphql/commit/0b449d89e1d9e8754d42ad5e5af7f780c705ce32, the ConversionService on AnnotatedControllerConfigurer is an internally managed instance that is customized with FormatterRegistrar rather than set. Closes gh-29636
This commit is contained in:
committed by
Brian Clozel
parent
81754c8bc4
commit
ef4add27f0
+1
-4
@@ -39,7 +39,6 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.core.io.Resource;
|
||||
import org.springframework.core.io.support.ResourcePatternResolver;
|
||||
import org.springframework.format.support.DefaultFormattingConversionService;
|
||||
import org.springframework.graphql.GraphQlService;
|
||||
import org.springframework.graphql.data.method.annotation.support.AnnotatedControllerConfigurer;
|
||||
import org.springframework.graphql.execution.BatchLoaderRegistry;
|
||||
@@ -130,9 +129,7 @@ public class GraphQlAutoConfiguration {
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public AnnotatedControllerConfigurer annotatedControllerConfigurer() {
|
||||
AnnotatedControllerConfigurer annotatedControllerConfigurer = new AnnotatedControllerConfigurer();
|
||||
annotatedControllerConfigurer.setConversionService(new DefaultFormattingConversionService());
|
||||
return annotatedControllerConfigurer;
|
||||
return new AnnotatedControllerConfigurer();
|
||||
}
|
||||
|
||||
private <T> List<T> toList(ObjectProvider<T> provider) {
|
||||
|
||||
Reference in New Issue
Block a user