GitHub
Join us on Slack
Join us on Discord
Ask on Stack Overflow
Search
⌃
K
Links
Introduction to OpenRewrite
Running Recipes
Authoring Recipes
Recipe catalog
Kotlin
Python
Analysis
CircleCI
Cloud suitability analyzer
Concourse
Cucumber
GitHub Actions
Hibernate
Java
Add ASLv2 license header
Add imports for fully qualified references to types
Add license header
Add or update annotation attribute
Change method access level
Change method name
Change method target to static
Change method target to variable
Change static field access to static method access
Change type
Delete method argument
Demonstrate rendering of Markup markers
Migrate from WebSphere traditional to Liberty
Order imports
Randomize tree IDs
Remove annotation
Remove interface implementations
Remove static import
Remove unused imports
Rename package name
Reorder method arguments
Replace String literal with constant
Replace constant with another constant
Replace constant with literal value
Simplify a call chain
Transform calls to Objects.isNull(..) and Objects.nonNull(..)
Update source positions
Use static import
Apache
Dependencies
Format
JHipster
Liberty
Logging
Micronaut
Modernize
OpenRewrite best practices
Search
Security
Spring
Add a spring configuration property
Change the key of a spring application property
Change the value of a spring application property
Delete a spring configuration property
Expand Spring YAML properties
Normalize Spring properties to kebab-case
Remove @RequestMapping annotations
Remove implicit web annotation names
Remove public from @Bean methods
Remove the @Autowired annotation on inferred constructor
Remove unnecessary @Repository annotation from Spring Data Repository sub-interface
Rename bean
Separate application YAML by profile
Update the API manifest
Amqp
Cloud2022
Http
Search
Security5
Security6
Spring Batch
Spring Boot 2.x
Add missing @Configuration annotation
Adds @DependsOnDatabaseInitialization to Spring Beans and Components depending on javax.sql.DataSource
Adjust configuration classes to use the WebServerFactoryCustomizer interface
Convert HeadersConfigurer chained calls into Lambda DSL
Convert HttpSecurity chained calls into Lambda DSL
Convert ServerHttpSecurity chained calls into Lambda DSL
Merge Spring bootstrap.yml with application.yml
Migrate @OutputCaptureRule to @ExtendWith(OutputCaptureExtension.class)
Migrate RestTemplateBuilder
Migrate Spring Boot 2.x projects to JUnit 5 from JUnit 4.
Migrate Spring Boot properties to 2.0
Migrate Spring Boot properties to 2.1
Migrate Spring Boot properties to 2.2
Migrate Spring Boot properties to 2.3
Migrate Spring Boot properties to 2.4
Migrate Spring Boot properties to 2.5
Migrate Spring Boot properties to 2.6
Migrate Spring Boot properties to 2.7
Migrate deprecated ActuatorMediaType to ApiVersion#getProducedMimeType
Migrate deprecated Spring-Boot EmbeddedDatabaseConnection.HSQL
Migrate flyway and liquibase credentials
Migrate multi-condition @ConditionalOnBean annotations
Migrate to Spring Boot 2.0
Migrate to Spring Boot 2.1
Migrate to Spring Boot 2.2
Migrate to Spring Boot 2.3
Migrate to Spring Boot 2.4
Migrate to Spring Boot 2.6
Migrate to Spring Boot 2.7
Migrate to recommended constants in LogbackLoggingSystemProperties from deprecated values in LoggingSystemProperties
Move SAML relying party identity provider property to asserting party
Remove @SpringExtension
Remove obsolete Spring JUnit runners
Remove unnecessary Spring @RunWith
Replace @ExtendWith and @ContextConfiguration with @SpringJunitConfig
Replace EnvironmentTestUtils with TestPropertyValues
Spring Boot 2.x best practices
Upgrade to Spring Boot 2.5
Use AutoConfiguration#imports
Use DiskSpaceHealthIndicator(File, DataSize)
Use EnableConfigurationProperties.VALIDATOR_BEAN_NAME
Use ErrorAttributes#getErrorAttributes(WebRequest, ErrorAttributeOptions)
Use ErrorProperties#IncludeStacktrace.ON_PARAM
Use MultipartConfigFactory with DataSize arguments
Use PingHealthIndicator
Use RestClientBuilderCustomizer
Use RestTemplateBuilder#basicAuthentication
Use RestTemplateBuilder#setConnectTimeout(Duration) and RestTemplateBuilder#setReadTimeout(Duration)
Use WebServerFactoryCustomizer
Use WebTestClientBuilderCustomizer
Use isEagerFilterInit()
Use javax.validation.constraints
Use org.springframework.boot.autoconfigure.http.HttpMessageConverters
Use org.springframework.boot.web.server.LocalServerPort
Use org.springframework.boot.web.servlet.error.ErrorController
Use org.springframework.boot.web.servlet.support.SpringBootServletInitializer
Use setEagerFilterInit(boolean)
Use spring-boot.run.agents configuration key in spring-boot-maven-plugin
Search
Spring Boot 3.x
Spring Data
Spring Framework
Testing
Upgrade
Jenkins
Kubernetes
XML
LaunchDarkly
Micrometer
Okio
OkHttp
Quarkus
Recommendations
Gradle
Maven
SQL
Static analysis and remediation
Terraform
Core
Config
Search
Text
Groovy
Hcl
JSON
Properties
YAML
Changelog
Reference
Concepts & explanations
Powered By
GitBook
Comment on page
Use isEagerFilterInit()
org.openrewrite.java.spring.boot2.MigrateUndertowServletWebServerFactoryIsEagerInitFilters
org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory#isEagerInitFilters
was deprecated in 2.4 and are removed in 2.6.
Recipe source