From 7b72ecd31a3dfded673ee1316794feadde424831 Mon Sep 17 00:00:00 2001 From: iroqueta Date: Tue, 7 Oct 2025 11:29:59 -0300 Subject: [PATCH] I make the ng folder serve as static content in Spring boot to support Angular apps Issue: 206593 --- .../src/main/java/com/genexus/springboot/GXConfig.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gxspringboot/src/main/java/com/genexus/springboot/GXConfig.java b/gxspringboot/src/main/java/com/genexus/springboot/GXConfig.java index 89a853f88..912a1bc28 100644 --- a/gxspringboot/src/main/java/com/genexus/springboot/GXConfig.java +++ b/gxspringboot/src/main/java/com/genexus/springboot/GXConfig.java @@ -46,6 +46,9 @@ public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler(webImageDir + "**") .addResourceLocations("classpath:" + webImageDir); + registry.addResourceHandler("/_ng/**") + .addResourceLocations("classpath:/ng/"); + registry.addResourceHandler("/" + blobPath + "/**") .addResourceLocations("file:./" + blobPath + "/"); } @@ -71,6 +74,7 @@ public FilterRegistrationBean urlRewriteFilter() { if (new ClassPathResource(REWRITE_FILE).exists()) { registrationBean.addInitParameter("modRewriteConf", "true"); registrationBean.addInitParameter("confPath", REWRITE_FILE); + registrationBean.setOrder(org.springframework.core.Ordered.HIGHEST_PRECEDENCE); } else { registrationBean.setEnabled(false);