thymeleafbroadleaf-commerce

How do I see Thymeleaf template changes in Broadleaf without restarting my server?


I downloaded the community edition of Broadleaf and I'm trying to change some markup in the Thymeleaf templates. (For example: layout/homepage.html). However, when I make a change, I don't see my changes when I refresh my browser unless I restart my Broadleaf site server. I have the same issue when editing JS and CSS.

Is there a setting that needs to be changed to see frontend changes without restarting the server? I'm suspecting some sort of cache setting is preventing the templates from reloading from the file.


Solution

  • Using the IDE rebuild seems to work with the oob Breadleaf Demo Site when running from a terminal with the spring-boot maven goal:

    mvn spring-boot:run
    

    Once it is running, if you update the templates/css inside the IDE with build automatically enabled (important!), then the site does reflect the changes upon refresh.

    I verified this works with IntelliJ, Spring Tool Suite, and base Eclipse.