Browse Source

Merge branch 'dev' of liubing/wlyy2.0 into dev

shikejing 4 years ago
parent
commit
35f76ab313

+ 6 - 6
svr/svr-base/src/main/java/com/yihu/jw/base/config/MultipartConfig.java

@ -6,22 +6,22 @@ import org.springframework.context.annotation.Configuration;
import javax.servlet.MultipartConfigElement;
import javax.servlet.MultipartConfigElement;
import java.io.*;
import java.io.*;
/**
/**
 * Created by liub on 2020/9/8.
 * Created by liub on 2020/9/11.
 */
 */
@Configuration
@Configuration
public class MultipartConfig {
public class MultipartConfig {
    @Bean
    @Bean
    MultipartConfigElement multipartConfigElement() {
    MultipartConfigElement multipartConfigElement() {
        MultipartConfigFactory factory = new MultipartConfigFactory();
        MultipartConfigFactory factory = new MultipartConfigFactory();
        File tmpFile = new File("/data/apps/temp");
        String location = "/data/apps/temp2";
        File tmpFile = new File(location);
        if (!tmpFile.exists()) {
        if (!tmpFile.exists()) {
            tmpFile.mkdirs();
            tmpFile.mkdirs();
        }
        }
        factory.setLocation("/data/apps/temp");
        factory.setLocation(location);
        return factory.createMultipartConfig();
        return factory.createMultipartConfig();
    }
    }
}
}

+ 2 - 1
svr/svr-base/src/main/resources/application.yml

@ -1,7 +1,8 @@
#通用的配置不用区分环境变量.
#通用的配置不用区分环境变量.
server:
server:
  port: ${server.svr-base-port}
  port: ${server.svr-base-port}
  tomcat:
      basedir: /data/apps/temp2
express:
express:
  sf_url: http://bsp-oisp.sf-express.com/bsp-oisp/sfexpressService
  sf_url: http://bsp-oisp.sf-express.com/bsp-oisp/sfexpressService
  sf_code: JKZL
  sf_code: JKZL