maven - Using Spring Boot 1.3, spring-boot-devtools and Thymeleaf templates won't do live reload when changed in IntelliJ 15 -
spring boot 1.3 introduced spring-boot-devtools provide similar functionality spring reloaded reload modified static resource templates (html, js) without having re-run application.
i have been using spring boot 1.2.7 before , able modify static resources on fly without having restart spring boot application.
same application not reloading static resources.
i using intellij 15.1. application packaged war file.
i have following dependencies in pom.xml (including others, excluded not being relevant):
<dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-devtools</artifactid> </dependency> <dependency> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-starter-thymeleaf</artifactid> </dependency> <build> <plugins> <plugin> <groupid>org.springframework.boot</groupid> <artifactid>spring-boot-maven-plugin</artifactid> <version>1.3.2.release</version> </plugin> </plugins> </build> i tried use spring-boot-maven-plugin version tag 1.3.2.release , changes html,js files visible in browser when template saved. seems @ least problem because of spring-bot-maven-plugin.
i have set resource right:
<resource> <directory>src/main/resources</directory> <filtering>true</filtering> <includes> <include>**/*.html</include> <include>**/*.properties</include> </includes> </resource> could please me resolve this?
did make sure compiling project? know i've needed in boot 1.2.x.
otherwise, i'd check duplicate-sounding post: using spring boot 1.3, spring-boot-devtools , thymeleaf templates won't live reload when changed in netbeans
Comments
Post a Comment