Exclude META-INF/build-info.properties from restart
Prior to this commit any application configured to write `META-INF/build-info.properties` could trigger unexpected application restarts. The problem is particularly prevalent when using Eclipse M2E in combination with Maven's `spring-boot-maven-plugin` `build-info` goal and Gradle's `springBoot` `buildInfo()`. Closes gh-7002
This commit is contained in:
committed by
Stephane Nicoll
parent
85fb273596
commit
d94eedfd8a
@@ -60,7 +60,7 @@ public class DevToolsProperties {
|
||||
|
||||
private static final String DEFAULT_RESTART_EXCLUDES = "META-INF/maven/**,"
|
||||
+ "META-INF/resources/**,resources/**,static/**,public/**,templates/**,"
|
||||
+ "**/*Test.class,**/*Tests.class,git.properties";
|
||||
+ "**/*Test.class,**/*Tests.class,git.properties,META-INF/build-info.properties";
|
||||
|
||||
private static final long DEFAULT_RESTART_POLL_INTERVAL = 1000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user