From e7b44e015a0216c37de184a605b522361723b52a Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 5 Jul 2012 01:29:41 +0200 Subject: [PATCH] Cannot amend properties in RequestMappingHandlerMapping (e.g. useSuffixPatternMatch) using a bean post processor as ApplicationContextAwareProcessor always fires first initialising RequestMappingHandlerMapping Issue: SPR-9371 --- .../annotation/HandlerMethodAnnotationDetectionTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.java b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.java index 3816f4b5de8..cedaf44cfac 100644 --- a/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.java +++ b/org.springframework.web.servlet/src/test/java/org/springframework/web/servlet/mvc/method/annotation/HandlerMethodAnnotationDetectionTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2011 the original author or authors. + * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,6 +103,7 @@ public class HandlerMethodAnnotationDetectionTests { context.refresh(); handlerMapping.setApplicationContext(context); + handlerMapping.afterPropertiesSet(); handlerAdapter.afterPropertiesSet(); exceptionResolver.afterPropertiesSet(); }