Skip to content

Commit e7b44e0

Browse files
committed
Cannot amend properties in RequestMappingHandlerMapping (e.g. useSuffixPatternMatch) using a bean post processor as ApplicationContextAwareProcessor always fires first initialising RequestMappingHandlerMapping
Issue: SPR-9371
1 parent 23fe1e2 commit e7b44e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2011 the original author or authors.
2+
* Copyright 2002-2012 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -103,6 +103,7 @@ public HandlerMethodAnnotationDetectionTests(Class<?> controllerType, boolean us
103103
context.refresh();
104104

105105
handlerMapping.setApplicationContext(context);
106+
handlerMapping.afterPropertiesSet();
106107
handlerAdapter.afterPropertiesSet();
107108
exceptionResolver.afterPropertiesSet();
108109
}

0 commit comments

Comments
 (0)