language migration - yibinericxia/documents GitHub Wiki
If your application is Spring Boot based, Java 17 works with Spring Boot version 2.6.8 and above. However, you may still need to upgrade other package versions, such as lombok version if it is under 1.18.22.
If you have your CI/CD pipelines built already, you can quickly test your changes in the maven/gradle file with the corresponding versions in the Dockerfile & Jenkinsfile and see if there is any issue in compilation, testing, deployment, and running without testing locally with more setup.
For Spring Boot projects to use Java 21, its version must be 3.x.x. And javax needs to be updated to jakarta and Apache HttpClient migration to 5.x could be needed as well.