Open 30atm opened 5 months ago
I think this is already possible, but it's somewhat non-intuitive:
Add the additional paths to spring.devtools.restart.additional-paths
but then exclude them from restarting the application through spring.devtools.restart.additional-exclude
.
This should set the filewatcher to watch for changes, triggering the livereload, but don't restart the app as the location has been excluded from restart.
But I agree that there should be a property for that.
Hi @mhalbritter ,
I would like to work on this enhancement, could you please assign me this issue so that I can submit my PR in favour of this issue.
Thanks, Akshay
All yours @itsAkshayDubey
I used a work-around and achieved this behavior
see LiveReloadConfig.java in this repo https://github.com/ibhatech/world-facts/tree/dev
Unable to access this repo. @metaforte
made it public now
Hi @philwebb ,
Kindly have a look at PR #41566
Thanks, Akshay
Thymeleaf allows using files from src folder during development. However live reload does not have a file system watcher for "additional paths" to auto reload based on those templates
Just as there is there is
spring.devtools.restart.additional-paths
,request new property
spring.devtools.livereload.additional-paths
this should work in support of
thymeleaf.prefix