增加多租户功能(应用隔离)
This commit is contained in:
@@ -6,6 +6,7 @@ import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
|
||||
/**
|
||||
* 文件中心
|
||||
@@ -13,6 +14,7 @@ import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||
*/
|
||||
@EnableDiscoveryClient
|
||||
@EnableConfigurationProperties(FileServerProperties.class)
|
||||
@EnableFeignClients
|
||||
@EnableFeignInterceptor
|
||||
@SpringBootApplication
|
||||
public class FileCenterApp {
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.central.file.config;
|
||||
|
||||
import com.central.common.config.DefaultWebMvcConfig;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author zlt
|
||||
* @date 2019/8/5
|
||||
*/
|
||||
@Configuration
|
||||
public class WebMvcConfig extends DefaultWebMvcConfig {
|
||||
}
|
||||
@@ -31,6 +31,9 @@ zlt:
|
||||
description: 文件中心接口文档
|
||||
version: 1.0
|
||||
base-package: com.central.file.controller
|
||||
#多租户配置
|
||||
tenant:
|
||||
enable: true
|
||||
|
||||
#fastDFS配置
|
||||
fdfs:
|
||||
|
||||
Reference in New Issue
Block a user