Skip to content

Commit 8d971a9

Browse files
author
章臣
committed
Fix Spring AOP AspectJ PCD spring-attic#1580
1 parent 9a7e7e3 commit 8d971a9

File tree

1 file changed

+6
-1
lines changed
  • spring-native-configuration/src/main/java/org/springframework/boot/autoconfigure/web/servlet

1 file changed

+6
-1
lines changed

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

+6-1
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@
2323
import org.springframework.nativex.hint.TypeHint;
2424
import org.springframework.nativex.type.NativeConfiguration;
2525
import org.springframework.web.context.ConfigurableWebApplicationContext;
26+
import org.springframework.web.filter.RequestContextFilter;
27+
28+
import static org.springframework.nativex.hint.TypeAccess.PUBLIC_METHODS;
29+
import static org.springframework.nativex.hint.TypeAccess.QUERY_PUBLIC_METHODS;
2630

2731

2832
@NativeHint(trigger = WebMvcAutoConfiguration.class,
2933
types = {
3034
@TypeHint(types = Servlet.class, access = {}),
31-
@TypeHint(types = ConfigurableWebApplicationContext.class, access = {})
35+
@TypeHint(types = ConfigurableWebApplicationContext.class, access = {}),
36+
@TypeHint(types = RequestContextFilter.class, access = {PUBLIC_METHODS, QUERY_PUBLIC_METHODS})
3237
},
3338
resources = @ResourceHint(patterns="org/springframework/web/util/HtmlCharacterEntityReferences.properties"))
3439
public class WebMvcHints implements NativeConfiguration {

0 commit comments

Comments
 (0)