Spring Framework
Composite Recipes
Recipes that include further recipes, often including the individual recipes below.
- Migrate breaking changes in
ResponseStatusException
- Migrate removed Spring
Assert
methods - Migrate to Spring Framework 5.0
- Migrate to Spring Framework 5.1
- Migrate to Spring Framework 5.2
- Migrate to Spring Framework 5.3
- Migrate to Spring Framework 6.0
- Migrate to Spring Framework 6.1
Recipes
@Bean
methods may not returnvoid
- Convert
InstantiationAwareBeanPostProcessorAdapter
toSmartInstantiationAwareBeanPostProcessor
- Migrate
HandlerInterceptorAdapter
toHandlerInterceptor
- Migrate
ResponseEntityExceptionHandler
from HttpStatus to HttpStatusCode - Migrate
ResponseStatusException#getRawStatusCode()
togetStatusCode().value()
- Migrate
ResponseStatusException#getStatus()
togetStatusCode()
- Migrate deprecated Spring Web UTF8
MediaType
enums - Migrate
setReadTimeout(java.lang.int)
to SocketConfigsetSoTimeout(..)
- Remove
public
from@Bean
methods - Replace
WebMvcConfigurerAdapter
withWebMvcConfigurer
- Use
Environment#acceptsProfiles(Profiles)
- Use
ObjectUtils#isEmpty(Object)
- Use varargs equivalents for deprecated JdbcTemplate signatures