Tuesday 20 August 2019

spring boot refresh static content in eclipse

There are 2 steps need to implement. 1) If it is Moven project then add the Devtools in Dependency in pom.xml.
org.springframework.boot spring-boot-devtools true 2) Add below lines to the Application.properties. # Path to project project.base-dir=file:///D:/CRM_CSS/crm/crm # Templates reloading during development spring.thymeleaf.prefix=${project.base-dir}/src/main/resources/templates/ spring.thymeleaf.cache=false # Static resources reloading during development spring.resources.static-locations=${project.base-dir}/src/main/resources/static/ spring.main.banner-mode=off spring.main.logStartupInfo=false

No comments:

Post a Comment