Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that class proxying is forced before AutoProxyCreator is created
Previously, using @EnableGlobalMethodSecurity would cause the AutoProxyCreator to be created before the AOP auto-configuration had called AopUtils.forceAutoProxyCreatorToUseClassProxying. Forcing auto proxy creation changes the AutoProxyCreator's bean definition so it has no effect when attempted after the creator has been created. This commit updates the AOP auto-configuration to use a BeanFactoryPostProcessor to force the use of class proxying. This ensures that the changes to the auto proxy creator's bean definition are in place before any bean creation has been performed. Fixes gh-25413
- Loading branch information
1 parent
e5fa9ad
commit 7aabd8b
Showing
2 changed files
with
51 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters