Skip to content

Commit cb06e3f

Browse files
committed
Fix MVC runtime hints.
Signed-off-by: Olga Maciaszek-Sharma <[email protected]> # Conflicts: # spring-cloud-gateway-server-mvc/src/main/java/org/springframework/cloud/gateway/server/mvc/config/GatewayMvcRuntimeHintsProcessor.java
1 parent 536b073 commit cb06e3f

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.context.annotation.ClassPathScanningCandidateComponentProvider;
3738
import org.springframework.core.type.filter.AssignableTypeFilter;
3839

@@ -73,7 +74,8 @@ public BeanFactoryInitializationAotContribution processAheadOfTime(ConfigurableL
7374
ReflectionHints hints = generationContext.getRuntimeHints().reflection();
7475
Set<Class<?>> typesToRegister = Stream
7576
.of(getTypesToRegister(GATEWAY_MVC_FILTER_PACKAGE_NAME),
76-
getTypesToRegister(GATEWAY_MVC_PREDICATE_PACKAGE_NAME), PROPERTIES)
77+
getTypesToRegister(GATEWAY_MVC_PREDICATE_PACKAGE_NAME), PROPERTIES,
78+
new HashSet<>(Collections.singletonList(FilterFunctions.class)))
7779
.flatMap(Set::stream)
7880
.collect(Collectors.toSet());
7981
typesToRegister.forEach(clazz -> hints.registerType(TypeReference.of(clazz),

0 commit comments

Comments
 (0)