静态资源映射
This commit is contained in:
parent
887a3bd306
commit
4d95683947
|
@ -64,9 +64,9 @@ public class WebConfig implements WebMvcConfigurer {
|
||||||
//必须做判断,不然jar运行的html路径会被覆盖掉
|
//必须做判断,不然jar运行的html路径会被覆盖掉
|
||||||
registry.addResourceHandler("/html/**").addResourceLocations("/html/");
|
registry.addResourceHandler("/html/**").addResourceLocations("/html/");
|
||||||
}
|
}
|
||||||
registry.addResourceHandler("/app/**").addResourceLocations("/app/", "classpath:/app/");
|
registry.addResourceHandler("/app/**").addResourceLocations("file:app/", "classpath:/app/");
|
||||||
registry.addResourceHandler("/static/**").addResourceLocations("/static/", "classpath:/static/");
|
registry.addResourceHandler("/static/**").addResourceLocations("file:static/", "classpath:/static/");
|
||||||
registry.addResourceHandler("/api/**").addResourceLocations("/api/", "classpath:/api/");
|
registry.addResourceHandler("/api/**").addResourceLocations("file:api/", "classpath:/api/");
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* druidServlet注册
|
* druidServlet注册
|
||||||
|
|
Loading…
Reference in New Issue