'sbm.gitSupportEnabled' is 'true', changes will be committed to branch after each recipe. The following shows an example, older JAX-RS application without Spring Boot support analyzed by SBM, displaying the following results: scanning 'JAXRS' With the scan command, an application is analyzed and the applicable recipes are displayed. The recipes, for example, support upgrading Spring Boot to a new version, change XML Bean configuration to Java configuration and migrate various Java EE / Jakarta implementations to Spring Boot. The list command displays the thirty recipes currently available. SBM uses OpenRewrite specifically for Spring Boot migrations.Īfter downloading the latest version of SBM, the command-line interface (CLI) can be started with: java -jar spring-boot-migrator.jarĪfter a few seconds, the user is presented with an SBM-specific prompt: migrator:>. The recipes allow, for example, to upgrade an existing application to a newer version of Java. OpenRewrite uses Recipes to change existing files for Kubernetes, Gradle, Maven, Java and others.
SBM is based on OpenRewrite, a general purpose tool for source code and configuration refactoring. SBM allows developers to convert existing, non Spring Boot applications, which are based on technologies such as JAX-RS, EJB and JMS to Spring Boot or upgrade older Spring Boot applications to the latest version. Spring Boot Migrator (SBM) is an experimental Spring project first released in March 2022.