mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
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:
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;
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class DevToolsPropertiesTests {
|
||||
assertThat(restart.getAllExclude()).containsOnly("META-INF/maven/**",
|
||||
"META-INF/resources/**", "resources/**", "static/**", "public/**",
|
||||
"templates/**", "**/*Test.class", "**/*Tests.class", "git.properties",
|
||||
"foo/**", "bar/**");
|
||||
"META-INF/build-info.properties", "foo/**", "bar/**");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user