Spring boot devtools does not consider exclude property

1k views Asked by At

I am using Spring Boot with Gradle and added the Devtools plugin. My application is creating files in src/main/resources so I don't want it to be restarted when this is changed. I have tried the following settings in application config file:

spring.devtools.restart.exclude= src/main/resources
spring.devtools.restart.exclude= resources
spring.devtools.restart.exclude= resources/**
spring.devtools.restart.exclude= src/main/resources/**

but none worked.

How can I configure spring boot devtools to ignore files changed in resources folder?

0

There are 0 answers