Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit f8decce

Browse files
committed
Move Encoding hint to converter level
See gh-178
1 parent 2457eef commit f8decce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-graalvm-native-configuration/src/main/java/org/springframework/boot/autoconfigure/http/HttpMessageConverterHints.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
*/
1616
package org.springframework.boot.autoconfigure.http;
1717

18+
import org.springframework.boot.web.servlet.server.Encoding;
1819
import org.springframework.graalvm.extension.NativeImageHint;
1920
import org.springframework.graalvm.extension.NativeImageConfiguration;
2021
import org.springframework.graalvm.extension.TypeInfo;
2122
import org.springframework.http.converter.FormHttpMessageConverter;
2223

2324
@NativeImageHint(trigger=HttpMessageConvertersAutoConfiguration.class,typeInfos= {
24-
@TypeInfo(types= {HttpMessageConverters.class,FormHttpMessageConverter.class})
25+
@TypeInfo(types= {HttpMessageConverters.class,FormHttpMessageConverter.class, Encoding.class})
2526
})
2627
public class HttpMessageConverterHints implements NativeImageConfiguration {
2728
}

spring-graalvm-native-configuration/src/main/java/org/springframework/boot/autoconfigure/web/servlet/WebMvcHints.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@
4141
DefaultErrorViewResolver.class,
4242
// TODO Maybe the first and last of these 3 needs to be in a more generic configuration hint working for both reactive and servlet
4343
ConfigurableWebApplicationContext.class,TomcatEmbeddedWebappClassLoader.class,WebApplicationContext.class,
44-
ErrorPage.class,DefaultErrorViewResolver.class,BeanNameViewResolver.class, ErrorPageRegistrarBeanPostProcessor.class,
45-
Encoding.class},
44+
ErrorPage.class,DefaultErrorViewResolver.class,BeanNameViewResolver.class, ErrorPageRegistrarBeanPostProcessor.class},
4645
typeNames= {"org.springframework.web.servlet.handler.AbstractHandlerMethodMapping$EmptyHandler"}),
4746
@TypeInfo(types= {Callable.class},access=AccessBits.CLASS|AccessBits.DECLARED_METHODS|AccessBits.DECLARED_CONSTRUCTORS)},abortIfTypesMissing = true)
4847
// TODO this is an interesting one as it is hinted at by both flavours of BeanPostProcessorsRegistrar (reactive and servlet)

0 commit comments

Comments
 (0)