problem-spring-web icon indicating copy to clipboard operation
problem-spring-web copied to clipboard

Change SecurityProblemSupport bean after AdviceTrait created

Open aafwu00 opened this issue 3 years ago • 0 comments

SecurityProblemSupport bean depends on AdviceTrait bean

Description

HandlerExceptionResolver created by WebMvcAutoConfiguration, but ProblemSecurityAutoConfiguration created before WebMvcAutoConfiguration. Import(SecurityProblemSupport) annotation working before created HandlerExceptionResolver.

If you don't define custom AdviceTrait bean, it doesn't well working. So this patch fix problem.

Motivation and Context

This fixes #707

Types of changes

  • [x] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added tests to cover my changes.

aafwu00 avatar Dec 30 '21 02:12 aafwu00