Jake Miller
Jake Miller

Reputation: 2642

Static content doesn't update until project restart - Spring Boot & Eclipse

I have a Spring Boot project with a few html pages. Whenever I used to modify the html pages in Eclipse, the changes would take effect immediately upon refresh. Now the changes don't come into effect until I restart the whole Spring Boot project. This is making UI changes an absolute nightmare and is a big waste of time.

What is causing the html pages to no longer update upon browser refresh?

I'm using Eclipse, Tomcat, and Spring Boot.

Upvotes: 0

Views: 3123

Answers (2)

Rakesh Ray
Rakesh Ray

Reputation: 72

Add the dependancy in pom.xml file.

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
</dependency>

Upvotes: 1

Stugal
Stugal

Reputation: 880

Do you have your server configured in Eclipse? If so, go to settings and check 'Publishing', change to 'Automatically publish when resources change'

Upvotes: 0

Related Questions