problem-spring-web
problem-spring-web copied to clipboard
Change SecurityProblemSupport bean after AdviceTrait created
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.