This commit is contained in:
parent
ae907965f9
commit
b6ba87394b
7
pom.xml
7
pom.xml
|
@ -2,7 +2,11 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
|
||||
<parent>
|
||||
<groupId>net.mingsoft</groupId>
|
||||
<artifactId>ms-pom</artifactId>
|
||||
<version>2.0.0-SNAPSHOT</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.mingsoft</groupId>
|
||||
<artifactId>ms-mcms</artifactId>
|
||||
|
@ -34,7 +38,6 @@
|
|||
<dependency>
|
||||
<groupId>net.mingsoft</groupId>
|
||||
<artifactId>ms-mpeople</artifactId>
|
||||
<version>1.0.28</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 此部分是铭飞平台MStroe的客户端(MStore不在铭飞开源产品范围),如果不需要使用MStore可以删除掉 -->
|
||||
|
|
|
@ -71,7 +71,7 @@ public class WebConfig implements WebMvcConfigurer {
|
|||
|
||||
@Override
|
||||
public void addResourceHandlers(ResourceHandlerRegistry registry) {
|
||||
registry.addResourceHandler("/upload/**").addResourceLocations("/upload/","file:upload/");
|
||||
registry.addResourceHandler(uploadMapping).addResourceLocations(File.separator+uploadFloderPath+File.separator,"file:"+uploadFloderPath+File.separator);
|
||||
registry.addResourceHandler("/templets/**").addResourceLocations(File.separator+template+File.separator,"file:"+template+File.separator);
|
||||
registry.addResourceHandler("/html/**").addResourceLocations("/html/","file:html/");
|
||||
//三种映射方式 webapp下、当前目录下、jar内
|
||||
|
|
Loading…
Reference in New Issue