Skip to content

Commit 43fe92f

Browse files
committed
Fix MVC runtime hints.
Signed-off-by: Olga Maciaszek-Sharma <olga.maciaszek-sharma@broadcom.com>
1 parent 5460911 commit 43fe92f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/config/GatewayMvcRuntimeHintsProcessor.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor;
3434
import org.springframework.beans.factory.config.BeanDefinition;
3535
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
36+
import org.springframework.cloud.gateway.server.mvc.filter.FilterFunctions;
3637
import org.springframework.cloud.gateway.server.mvc.filter.FilterAutoConfiguration;
3738
import org.springframework.cloud.gateway.server.mvc.predicate.PredicateAutoConfiguration;
3839
import org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider;
@@ -75,7 +76,8 @@ public BeanFactoryInitializationAotContribution processAheadOfTime(ConfigurableL
7576
ReflectionHints hints = generationContext.getRuntimeHints().reflection();
7677
Set<Class<?>> typesToRegister = Stream
7778
.of(getTypesToRegister(GATEWAY_MVC_FILTER_PACKAGE_NAME),
78-
getTypesToRegister(GATEWAY_MVC_PREDICATE_PACKAGE_NAME), PROPERTIES)
79+
getTypesToRegister(GATEWAY_MVC_PREDICATE_PACKAGE_NAME), PROPERTIES,
80+
new HashSet<>(Collections.singletonList(FilterFunctions.class)))
7981
.flatMap(Set::stream)
8082
.collect(Collectors.toSet());
8183
typesToRegister.forEach(clazz -> hints.registerType(TypeReference.of(clazz),

0 commit comments

Comments
 (0)