Browse Source
Bean post-processors only apply to the context in which they're registered. ValidationAutoConfiguration will only auto-configure the MethodValidationPostProcessor if the post-processor is missing from the current context and any of its ancestors. If an ancestor context contains the post-processor it will not be auto-configured and the descendant context will not have method validation configured. This commit updates the auto-configuration to limit the search for an existing MethodValidationPostProcessor bean to the current context. Fixes gh-278902.4.x
2 changed files with 19 additions and 6 deletions
Loading…
Reference in new issue