|
|
@@ -73,7 +73,7 @@ public class WebConfig implements WebMvcConfigurer {
|
|
|
registry.addResourceHandler("/html/**").addResourceLocations("/html/","file:html/");
|
|
|
//三种映射方式 webapp下、当前目录下、jar内
|
|
|
registry.addResourceHandler("/app/**").addResourceLocations("/app/","file:app/", "classpath:/app/");
|
|
|
- registry.addResourceHandler("/static/**","/**").addResourceLocations("/static/","file:static/","classpath:/static/","classpath:/META-INF/resources/");
|
|
|
+ registry.addResourceHandler("/static/**").addResourceLocations("/static/","file:static/","classpath:/static/","classpath:/META-INF/resources/");
|
|
|
registry.addResourceHandler("/api/**").addResourceLocations("/api/","file:api/", "classpath:/api/");
|
|
|
if(new File(uploadFloderPath).isAbsolute()){
|
|
|
//如果指定了绝对路径,上传的文件都映射到uploadMapping下
|