diff --git a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java index 5d9db5b9b5..37e70f21e7 100644 --- a/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java +++ b/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/autoconfigure/DevToolsProperties.java @@ -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; diff --git a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertiesTests.java b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertiesTests.java index 7843733370..d9018c7b53 100644 --- a/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertiesTests.java +++ b/spring-boot-devtools/src/test/java/org/springframework/boot/devtools/autoconfigure/DevToolsPropertiesTests.java @@ -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