jeecg.path.webapp配置无效 issues/3126

pull/3201/head
zhangdaiscott 2021-11-16 21:16:58 +08:00
parent 09a63610cf
commit 8bae42049c
1 changed files with 7 additions and 4 deletions

View File

@ -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 {
}
/**
* Longjson
* @Return: void
*/
* Longjson
* @Return: void
*/
@Override
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
MappingJackson2HttpMessageConverter jackson2HttpMessageConverter = new MappingJackson2HttpMessageConverter();