Open yeekangc opened 3 years ago
To use dev mode in a project with a Spring Boot app, the following steps are needed:
war
packaging type in pom.xml
<installAppPackages>
setting from the liberty-maven-plugin
configuration in pom.xml
SpringBootServletInitializer
in the main Spring Boot application class (the class that is annotated with @SpringBootApplication
)springBoot-2.0
feature from server.xml
<webApplication ...
element instead of <springBootApplication ...
to define your application in server.xml
Then start dev mode as usual with mvn liberty:dev
See https://github.com/ericglau/guide-spring-boot/commit/c8325cb9074bc9baf97968a857940581919038e5 for an example of how to use dev mode with the sample project in Open Liberty's Spring Boot guide
Document as part of dev mode's documentation how users can work with Spring Boot apps in dev mode today.
https://github.com/ericglau/guide-spring-boot/commit/c8325cb9074bc9baf97968a857940581919038e5