Appendix A: Spring Boot Migration
If you need to migrate Spring Boot 2.x apps into the most recent version of Spring Boot 3.x, this appendix shows you how to do so. We will work on code snippets and not complete solutions here, but at least it will give you an idea of what you need to prepare for a migration. I’ll present the code snippets in a From/To format for easy comparison and understanding.
Let’s start with Spring Security and see what change and what you need to do.
Migrating Spring Security
It’s important to know that since Spring Security 5.7, the WebSecurityConfigurerAdapter usage has been deprecated. So, you need to do the following when replacing the extends of this class.
Using HttpSecurity
In Spring Security 5.4, the Spring Security ...