Files
gh-openrewrite-rewrite-docs…/skills/writing-openrewrite-recipes/references/recipes-spring-boot-common.csv
2025-11-30 08:45:33 +08:00

15 KiB

1Fully Qualified Recipe NameRecipe NameDescription
2io.moderne.java.spring.boot3.ConditionalOnAvailableEndpointMigrationSpring34Migrate `ConditionalOnAvailableEndpoint` for Spring Boot 3.4Migrate `@ConditionalOnAvailableEndpoint(EndpointExposure.CLOUD_FOUNDRY)` to `@ConditionalOnAvailableEndpoint(EndpointExposure.WEB)` for Spring Boot 3.4.
3io.moderne.java.spring.boot3.MigrateEndpointAnnotationAccessValueSpring34Migrate `@Endpoint`s `defaultAccess` valueSince Spring Boot 3.4 the `@Endpoint` access configuration values are no longer `true|false` but `none|read-only|unrestricted`.
4io.moderne.java.spring.boot.MigrateSpringFrameworkDependenciesToSpringBootMigrate Spring Framework Dependencies to Spring BootMigrate Spring Framework Dependencies to Spring Boot.
5io.moderne.java.spring.boot3.SpringBootProperties_3_4Migrate `@Endpoint` Security properties to 3.4Migrate the settings for Spring Boot Management Endpoint Security from `true`|`false` to `read-only`|`none`.
6io.moderne.java.spring.boot3.UpgradeSpringBoot_3_5Migrate to Spring Boot 3.5Migrate applications to the latest Spring Boot 3.5 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 3.5.
7io.moderne.java.spring.boot4.SpringBootProperties_4_0Migrate Spring Boot properties to 4.0Migrate properties found in `application.properties` and `application.yml`.
8io.moderne.java.spring.boot3.UpgradeSpringKafka_3_3Migrate to Spring Kafka 3.3Migrate applications to the latest Spring Kafka 3.3 release.
9io.moderne.java.spring.boot3.SpringBoot3BestPracticesSpring Boot 3.5 best practicesApplies best practices to Spring Boot 3.5+ applications.
10io.moderne.java.spring.boot.SpringToSpringBootMigrate Spring to Spring BootMigrate non Spring Boot applications to the latest compatible Spring Boot release. This recipe will modify an application's build files introducing Maven dependency management for Spring Boot or adding the Gradle Spring Boot build plugin.
11io.moderne.java.spring.boot3.SpringBoot35DeprecationsMigrate Spring Boot 3.5 deprecated classes and methodsMigrate deprecated classes and methods that have been marked for removal in Spring Boot 3.5.
12io.moderne.java.spring.boot3.UpgradeSpringBoot_3_4Migrate to Spring Boot 3.4Migrate applications to the latest Spring Boot 3.4 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 3.4.
13io.moderne.java.spring.boot3.UpgradeGradle7Spring34Upgrade Gradle to 7.6.4+ for Spring Boot 3.4Spring Boot 3.4 requires Gradle 7.6.4.
14io.moderne.java.spring.boot3.UpgradeGradle8Spring34Upgrade Gradle 8 to 8.4+ for Spring Boot 3.4Spring Boot 3.4 requires Gradle 8.4+.
15io.moderne.java.spring.boot3.UpgradeMyBatisToSpringBoot_3_4Upgrade MyBatis to Spring Boot 3.4Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 3.4.
16io.moderne.java.spring.boot3.UpgradeSpringCloudAWSToSpringBoot_3_4Upgrade Spring Cloud AWS to Spring Boot 3.4 compatible versionUpgrade the Spring Cloud AWS dependency to a version compatible with Spring Boot 3.4.
17org.openrewrite.java.dropwizard.MigrateDropwizardToSpringBootMigrate Dropwizard to Spring BootApply various changes to migrate Dropwizard applications to Spring Boot.
18org.openrewrite.java.spring.boot2.AddConfigurationAnnotationIfBeansPresentAdd missing `@Configuration` annotationClass having `@Bean` annotation over any methods but missing `@Configuration` annotation over the declaring class would have `@Configuration` annotation added.
19org.openrewrite.java.spring.boot2.ConditionalOnBeanAnyNestedConditionMigrate multi-condition `@ConditionalOnBean` annotationsMigrate multi-condition `@ConditionalOnBean` annotations to `AnyNestedCondition`.
20org.openrewrite.java.spring.boot2.MigrateActuatorMediaTypeToApiVersionMigrate deprecated `ActuatorMediaType` to `ApiVersion#getProducedMimeType`Spring Boot `ActuatorMediaType` was deprecated in 2.5 in favor of `ApiVersion#getProducedMimeType()`. Replace `MediaType.parseMediaType(ActuatorMediaType.Vx_JSON)` with `MediaType.asMediaType(ApiVersion.Vx.getProducedMimeType())`.
21org.openrewrite.java.spring.boot2.MigrateHsqlEmbeddedDatabaseConnectionMigrate deprecated Spring-Boot `EmbeddedDatabaseConnection.HSQL`Spring-Boot `EmbeddedDatabaseConnection.HSQL` was deprecated in favor of `EmbeddedDatabaseConnection.HSQLDB` in 2.4.
22org.openrewrite.java.spring.boot2.MigrateLoggingSystemPropertyConstantsMigrate to recommended constants in `LogbackLoggingSystemProperties` from deprecated values in `LoggingSystemProperties`Replaces field and static access of deprecated fields in `LoggingSystemProperties` with the recommendations from `LogbackLoggingSystemProperties`. Deprecated in 2.4.x and removed in 2.6.0.
23org.openrewrite.java.spring.boot2.OutputCaptureExtensionMigrate `@OutputCaptureRule` to `@ExtendWith(OutputCaptureExtension.class)`Use the JUnit Jupiter extension instead of JUnit 4 rule.
24org.openrewrite.java.spring.boot2.RestTemplateBuilderRequestFactoryMigrate `RestTemplateBuilder`Migrate `RestTemplateBuilder#requestFactory` calls to use a `Supplier`. See the [migration guide](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide#resttemplatebuilder) for more.
25org.openrewrite.java.spring.boot3.AddValidToNestedConfigPropertiesAdd `@Valid` to nested properties in `@ConfigurationProperties`Adds `@Valid` annotation to fields in `@ConfigurationProperties` classes that contain nested properties with validation constraints.
26org.openrewrite.java.spring.boot3.ConfigurationOverEnableSecurityAdd `@Configuration` to classes with `@EnableXXXSecurity` annotationsPrior to Spring Security 6 `@EnableXXXSecurity` implicitly had `@Configuration`. `Configuration` was removed from the definitions of the `@EnableSecurity` definitions in Spring Security 6. Consequently classes annotated with `@EnableXXXSecurity` coming from pre-Boot 3 should have `@Configuration` annotation added.
27org.openrewrite.java.spring.boot3.MigrateWebMvcTagsToObservationConventionMigrate `WebMvcTagsProvider` to `DefaultServerRequestObservationConvention`Migrate `WebMvcTagsProvider` to `DefaultServerRequestObservationConvention` as part of Spring Boot 3.2 removals.
28org.openrewrite.maven.spring.UpgradeExplicitSpringBootDependenciesUpgrade Spring dependenciesUpgrades dependencies according to the specified version of spring boot. Spring boot has many direct and transitive dependencies. When a module has an explicit dependency on one of these it may also need to be upgraded to match the version used by spring boot.
29org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_2Migrate to Spring Boot 3.2Migrate applications to the latest Spring Boot 3.2 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 3.1.
30org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_3_2Upgrade MyBatis to Spring Boot 3.2Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 3.2.
31org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_3Migrate to Spring Boot 2.3Migrate applications to the latest Spring Boot 2.3 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 2.3.
32org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_2_3Upgrade MyBatis to Spring Boot 2.3Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 2.3.
33org.openrewrite.java.spring.boot3.SpringBootProperties_3_5Migrate Spring Boot properties to 3.5Migrate properties found in `application.properties` and `application.yml`.
34org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_3Migrate to Spring Boot 3.3Migrate applications to the latest Spring Boot 3.3 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 3.2.
35org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_4Migrate to Spring Boot 2.4Migrate applications to the latest Spring Boot 2.4 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 2.4.
36org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5MigrationMigrate Spring Boot 2.x projects to JUnit 5 from JUnit 4This recipe will migrate a Spring Boot application's tests from JUnit 4 to JUnit 5. This spring-specific migration includes conversion of Spring Test runners to Spring Test extensions and awareness of the composable Spring Test annotations.
37org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_2_4Upgrade MyBatis to Spring Boot 2.4Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 2.4.
38org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_2Migrate to Spring Boot 2.2Migrate applications to the latest Spring Boot 2.2 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 2.2.
39org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_2_2Upgrade MyBatis to Spring Boot 2.2Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 2.2.
40org.openrewrite.java.spring.boot2.SpringBootProperties_2_5Migrate Spring Boot properties to 2.5Migrate properties found in `application.properties` and `application.yml`.
41org.openrewrite.java.spring.boot3.UpgradeSpringBoot_3_1Migrate to Spring Boot 3.1Migrate applications to the latest Spring Boot 3.1 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 3.0.
42org.openrewrite.java.spring.boot2.SpringBootProperties_2_1Migrate Spring Boot properties to 2.1Migrate properties found in `application.properties` and `application.yml`.
43org.openrewrite.java.spring.boot2.SpringBootProperties_2_6Migrate Spring Boot properties to 2.6Migrate properties found in `application.properties` and `application.yml`.
44org.openrewrite.java.spring.boot3.SpringBootProperties_3_4Migrate Spring Boot properties to 3.4Migrate properties found in `application.properties` and `application.yml`.
45org.openrewrite.java.spring.boot3.SpringBootProperties_3_4_EnabledToAccessMigrate Enabled to Access Spring Boot PropertiesMigrate properties found in `application.properties` and `application.yml` specifically converting 'enabled' to 'access'
46org.openrewrite.java.spring.boot3.SpringBootProperties_3_2Migrate Spring Boot properties to 3.2Migrate properties found in `application.properties` and `application.yml`.
47org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_6Migrate to Spring Boot 2.6Migrate applications to the latest Spring Boot 2.6 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 2.6.
48org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_2_6Upgrade MyBatis to Spring Boot 2.6Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 2.6.
49org.openrewrite.java.spring.boot3.SpringBoot33BestPracticesSpring Boot 3.3 best practicesApplies best practices to Spring Boot 3 applications.
50org.openrewrite.java.spring.boot3.SpringBoot3BestPracticesOnlySpring Boot 3.3 best practices (only)Applies best practices to Spring Boot 3 applications without chaining in upgrades to Spring Boot.
51org.openrewrite.java.spring.boot2.SpringBootProperties_2_0Migrate Spring Boot properties to 2.0Migrate properties found in `application.properties` and `application.yml`.
52org.openrewrite.java.spring.boot3.SpringBootProperties_3_3Migrate Spring Boot properties to 3.3Migrate properties found in `application.properties` and `application.yml`.
53org.openrewrite.java.spring.boot3.SpringBootProperties_3_0Migrate Spring Boot properties to 3.0Migrate properties found in `application.properties` and `application.yml`.
54org.openrewrite.java.spring.boot2.SpringBootProperties_2_2Migrate Spring Boot properties to 2.2Migrate properties found in `application.properties` and `application.yml`.
55org.openrewrite.java.spring.boot2.SpringBootProperties_2_4Migrate Spring Boot properties to 2.4Migrate properties found in `application.properties` and `application.yml`.
56org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_0Migrate from Spring Boot 1.x to 2.0Migrate Spring Boot 1.x applications to the latest Spring Boot 2.0 release. This recipe will modify an application's build files make changes to deprecated/preferred APIs and migrate configuration settings that have changes between versions. This recipe will also chain additional framework migrations (Spring Framework Spring Data etc) that are required as part of the migration to Spring Boot 2.0.
57org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_2_0Upgrade MyBatis to Spring Boot 2.0Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 2.0.
58org.openrewrite.java.spring.boot2.UpgradeSpringBoot_2_7Migrate to Spring Boot 2.7Upgrade to Spring Boot 2.7.
59org.openrewrite.java.spring.boot3.UpgradeMyBatisToSpringBoot_2_7Upgrade MyBatis to Spring Boot 2.7Upgrade MyBatis Spring modules to a version corresponding to Spring Boot 2.7.
60org.openrewrite.java.spring.boot2.SpringBootProperties_2_7Migrate Spring Boot properties to 2.7Migrate properties found in `application.properties` and `application.yml`.
61org.openrewrite.java.spring.boot2.SpringBootProperties_2_3Migrate Spring Boot properties to 2.3Migrate properties found in `application.properties` and `application.yml`.