Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Security 6.0 Migration Guide Should Mention @Configuration Meta-Annotation Removal From Configuration Annotations #12486

Closed
adase11 opened this issue Jan 5, 2023 · 1 comment
Assignees
Labels
in: docs An issue in Documentation or samples type: enhancement A general enhancement
Milestone

Comments

@adase11
Copy link

adase11 commented Jan 5, 2023

Mentioned in spring-projects/spring-boot#33645 and opening here.

@EnableMethodSecurity (and @EnableWebSecurity as well) dropped the meta annotation @Configuration between version 5.8 & 6.0.x. Projects that were relying on that annotation to register the class for component scanning will need to add the @Configuration annotation themselves.

I think this would be good to mention in the 6.0 Migration Guide

@adase11 adase11 added status: waiting-for-triage An issue we've not yet triaged type: enhancement A general enhancement labels Jan 5, 2023
@adase11
Copy link
Author

adase11 commented Jan 5, 2023

If it helps, it looks like this commit is the one that removed the @Configuration annotation (from more classes that I originally mentioned).

@jzheaux jzheaux closed this as completed in 88a8ef6 Jan 6, 2023
@jzheaux jzheaux self-assigned this Jan 6, 2023
@jzheaux jzheaux added in: docs An issue in Documentation or samples and removed status: waiting-for-triage An issue we've not yet triaged labels Jan 6, 2023
@jzheaux jzheaux added this to the 5.8.2 milestone Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: docs An issue in Documentation or samples type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants