spring-security-samples
spring-security-samples copied to clipboard
Create sample demonstrating Spring Security upgrades through OpenRewrite
OpenRewrite supports various upgrade recipes related to Spring Security: https://docs.openrewrite.org/reference/recipes/java/spring/security5 https://docs.openrewrite.org/reference/recipes/java/spring/security6 These can be run individually to upgrade to Spring Boot 5.8 or 6.0, or be run as part of a Sping Boot 3 Migration.
A new sample module can be added that contains a deliberately outdated Spring Security application, which is then upgraded automatically through a simple command:
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run \
-Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:LATEST \
-Drewrite.activeRecipes=org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_0