From 491e81371e0680bf9e5f1fc893ca46154e825afe Mon Sep 17 00:00:00 2001 From: Michael Yan Date: Fri, 26 May 2023 20:35:02 +0800 Subject: [PATCH] Grails Boot: Support reloading spring beans from resources.xml when changed --- ...railsDevelopmentModeWatchApplicationContextInitializer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/grails-boot/src/main/groovy/org/grails/boot/context/GrailsDevelopmentModeWatchApplicationContextInitializer.java b/grails-boot/src/main/groovy/org/grails/boot/context/GrailsDevelopmentModeWatchApplicationContextInitializer.java index 4d689dd7fe..cf2220f62d 100644 --- a/grails-boot/src/main/groovy/org/grails/boot/context/GrailsDevelopmentModeWatchApplicationContextInitializer.java +++ b/grails-boot/src/main/groovy/org/grails/boot/context/GrailsDevelopmentModeWatchApplicationContextInitializer.java @@ -17,7 +17,6 @@ import java.io.File; import java.io.IOException; - import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; @@ -67,7 +66,7 @@ public class GrailsDevelopmentModeWatchApplicationContextInitializer implements private static final Log logger = LogFactory.getLog(GrailsDevelopmentModeWatchApplicationContextInitializer.class); - private static final List FILE_EXTENSIONS = List.of("groovy", "java", "properties"); + private static final List FILE_EXTENSIONS = List.of("groovy", "java", "properties", "xml"); private static final String SOURCE_MAIN_JAVA = "src/main/java"; private static final String SOURCE_MAIN_GROOVY = "src/main/groovy";