Spring Boot 3.x
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Comment deprecated methods in Spring 3.4
- Enable Virtual Threads on Java 21
- Migrate Spring Boot Management Endpoint Security properties to 3.4
- Migrate Spring Boot properties to 3.0
- Migrate Spring Boot properties to 3.1
- Migrate Spring Boot properties to 3.2
- Migrate Spring Boot properties to 3.3
- Migrate Spring Boot properties to 3.4
- Migrate dropWizard dependencies to Spring Boot 3.x
- Migrate thymeleaf dependencies to Spring Boot 3.x
- Migrate to Spring Boot 3.0
- Migrate to Spring Boot 3.1
- Migrate to Spring Boot 3.2
- Migrate to Spring Boot 3.3
- Migrate to Spring Boot 3.4
- Relocate Launcher Classes
- Remove the deprecated properties
additional-keys-to-sanitize
from theconfigprops
andenv
end points - Replace
@MockBean
and@SpyBean
- Replace deprecated setters in
RestTemplateBuilder
- Spring Boot 3.3 best practices (only)
- Spring Boot 3.4 best practices
- Upgrade Gradle 8 to 8.4+ for Spring Boot 3.4
- Upgrade Gradle to 7.6.4+ for Spring Boot 3.4
- Upgrade MyBatis to Spring Boot 2.1
- Upgrade MyBatis to Spring Boot 2.2
- Upgrade MyBatis to Spring Boot 2.3
- Upgrade MyBatis to Spring Boot 2.4
- Upgrade MyBatis to Spring Boot 2.5
- Upgrade MyBatis to Spring Boot 2.6
- Upgrade MyBatis to Spring Boot 2.7
- Upgrade MyBatis to Spring Boot 3.0
- Upgrade MyBatis to Spring Boot 3.2
- Upgrade MyBatis to Spring Boot 3.4
Recipes
- Add
@Configuration
to classes with@EnableXXXSecurity
annotations - Add
@Valid
annotation to fields - Add
SetUseTrailingSlashMatch()
in configuration - Add trailing slash to Spring routes
- Bean methods should return concrete types
- Comment on
@MockitoSpyBean
and@MockitoBean
in@Configuration
- Downgrade Jakarta Servlet API to 5.0 when using Jetty
- Enable Spring Batch Annotation
- Maintain trailing slash URL mappings
- Migrate
@Endpoint
sdefaultAccess
value - Migrate
ConditionalOnAvailableEndpoint
for Spring Boot 3.4 - Migrate SAP cloud foundry logging support to Spring Boot 3.x
- Migrate
WebMvcTagsProvider
toDefaultServerRequestObservationConvention
- Migrate management endpoint access value
- Remove
Replace.NONE
from@AutoConfigureTestDatabase
- Remove
SolrAutoConfiguration
- Remove Unnecessary
@ConstructorBinding
- Rename
server.max-http-header-size
toserver.max-http-request-header-size
- Spring Boot 3.3 best practices
- Upgrade MyBatis to Spring Boot 2.0