-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
Milestone
Description
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M1-Release-Notes#miscellaneous
Apart from the changes listed above, there have also been some minor tweaks and improvements including:
- Support for Java’s
SecurityManagerhas been removed following its deprecation in the JDK- Support for Spring Framework’s
CommonsMultipartResolverhas been removed following its removal in Spring Framework 6
What needs to be done
- How to find out if
SecurityManageris used? - How to find out if
CommonsMultipartResolveris used?
SecurityManager
Finder
Find System.getSecurityManager() or AccessControlException (potential contribution)
Implementation
- Implement the Finder as OpenRewriteRecipe adding Markers to the matching locations
- Let the `Sbm30_Finder´ implementation use the finder recipe
Recipe
None
Report
Inform the user about the potential usage of SecurityManager and that this class was removed.
CommonsMultipartResolver
Finder
Find bean definitions of type CommonsMultipartResolver
Implementation
- Create a new OpenRewrite Finder recipe that finds/marks Spring bean declarations by type (potential contribution)
- Let the `Sbm30_Finder´ implementation use the finder recipe
- Create a
ProjectResourceFinderdelegating to the recipe to find Spring bean declarations by type using theProjectContext
Recipe
Remove beans of type CommonsMultipartResolver
Implementation
- Create OpenRewrite recipe
RemoveCommonsMultipartResolverBeanDeclarationsthat uses the finder and removes bean declaration methods (potential contribution) - Link the recipe as named recipe in the upgrade recipe yaml
Report
Suggest to remove CommonsMultipartResolver bean and relying on Spring Boot auto-configuration