Skip to content

Hot reload in Spring Boot Application #1856

Closed Answered by scottkurz
julienroy50 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not sure why you need to restart the server after making app changes.

Generally speaking, since you're using a WAR package, it should be possible to use the Liberty Maven Plugin "dev mode" to achieve "hot reload" like any WAR. You do need to use the SpringBootServletInitializer to bootstrap the Spring objects from within the web container.

This is explained in my article Running a Spring Boot 3.x application WAR file on Liberty, which is a bit over-simplified to show the different options using a Spring Boot WAR in Liberty.

The article explains too that you can also, alternatively, use the <springBootApplication> optimized deployment for a Spring Boot WAR, which allows you to use thin…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by scottkurz
Comment options

You must be logged in to vote
2 replies
@scottkurz
Comment options

@julienroy50
Comment options

Comment options

You must be logged in to vote
1 reply
@julienroy50
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants