From 8bae42049c03c6fc5544de995147ddc76983e5d5 Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Tue, 16 Nov 2021 21:16:58 +0800 Subject: [PATCH] =?UTF-8?q?jeecg.path.webapp=E9=85=8D=E7=BD=AE=E6=97=A0?= =?UTF-8?q?=E6=95=88=20issues/3126?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/config/WebMvcConfiguration.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java index 9b2689d5..b5b323bf 100644 --- a/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java +++ b/jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/config/WebMvcConfiguration.java @@ -41,7 +41,10 @@ public class WebMvcConfiguration implements WebMvcConfigurer { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/**") - .addResourceLocations("file:" + upLoadPath + "//", "file:" + webAppPath + "//") + //update-begin-author:taoyan date:20211116 for: jeecg.path.webapp配置无效 #3126 + .addResourceLocations("file:" + upLoadPath + "//") + .addResourceLocations("file:" + webAppPath + "//") + //update-end-author:taoyan date:20211116 for: jeecg.path.webapp配置无效 #3126 .addResourceLocations(staticLocations.split(",")); } @@ -72,9 +75,9 @@ public class WebMvcConfiguration implements WebMvcConfigurer { } /** - * 添加Long转json精度丢失的配置 - * @Return: void - */ + * 添加Long转json精度丢失的配置 + * @Return: void + */ @Override public void configureMessageConverters(List> converters) { MappingJackson2HttpMessageConverter jackson2HttpMessageConverter = new MappingJackson2HttpMessageConverter();