thymeleaf achieve hot deployment

Hot deployment can be modified in the following pages, without restarting the server can see the changes effect.

 

1. Import dependence, I use Gradle, may be used maven to find the corresponding dependent https://mvnrepository.com/

    compile group: 'nekohtml', name: 'nekohtml', version: '1.9.6.2'

2. Configure application.yml

spring:
    thymeleaf:
        cache: false
        mode: LEGACYHTML5

3. After completion of each interface changes sure to press ctrl + f9, re-build the page! ! !

Guess you like

Origin www.cnblogs.com/rao11/p/12051528.html