我正在使用带有 Gradle 的 Spring Boot 并添加了 Devtools 插件。我的应用程序正在 src/main/resources 中创建文件,因此我不希望它在更改时重新启动。我在应用程序配置文件中尝试了以下设置:
spring.devtools.restart.exclude= src/main/resources
spring.devtools.restart.exclude= resources
spring.devtools.restart.exclude= resources/**
spring.devtools.restart.exclude= src/main/resources/**
但没有一个工作。
如何配置 spring boot devtools 以忽略资源文件夹中更改的文件?