Detect controller methods via InitializingBean hook

Previously RequestMappingHandlerMapping detected @RequestMapping
methods through an initApplicationContext() hook. However, the
HandlerMapping may not have been fully set up with all its
dependencies at that point including settings like useSuffixPattern
and others.

This change moves the detection @RequestMapping methods to an
InitializingBean.afterPropertiesSet() hook.

Issue: SPR-9371
This commit is contained in:
Rossen Stoyanchev
2012-05-10 16:42:36 -04:00
parent f61f4a960e
commit d7efc0db80
5 changed files with 45 additions and 32 deletions

View File

@@ -16,6 +16,7 @@ Changes in version 3.2 M1
* add Jackson 2 HttpMessageConverter and View types
* add pretty print option to Jackson HttpMessageConverter and View types
* fix issue with resolving Errors controller method argument
* detect controller methods via InitializingBean in RequestMappingHandlerMapping
Changes in version 3.1.1 (2012-02-16)
-------------------------------------