🎨 Improving structure / format of the code.

This commit is contained in:
萌萌哒Sakura酱 committed 2019-01-20 01:07:41 +08:00
1 parent 2ba0ab306d
commit b9106e0c20
5 files changed
+13 -14

No files matched your search

@@ -20,7 +20,7 @@ public class PigxTenantConfigProperties {
/**
* 维护租户列名称
*/
private String column;
private String column="tenant_id";
/**
* 多租户的数据表集合
@@ -54,8 +54,7 @@ public class PigxTenantHandler implements TenantHandler {
*/
@Override
public String getTenantIdColumn() {
return StrUtil.isNotBlank(properties.getColumn())
? properties.getColumn() : "tenant_id";
return properties.getColumn();
}
/**
@@ -178,9 +178,9 @@ public class MinioTemplate implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
Assert.hasText(endpoint, "Minio url 为空。");
Assert.hasText(accessKey, "Minio accessKey 为空。");
Assert.hasText(secretKey, "Minio accessKey 为空。");
Assert.hasText(endpoint, "Minio url 为空");
Assert.hasText(accessKey, "Minio accessKey为空");
Assert.hasText(secretKey, "Minio secretKey为空");
this.client = new MinioClient(endpoint, accessKey, secretKey);
}
@@ -99,8 +99,8 @@ security:
client:
# 默认放行url,如果子模块重写这里的配置就会被覆盖
ignore-urls:
- '/actuator/**'
- '/v2/api-docs'
- /actuator/**
- /v2/api-docs
resource:
loadBalanced: true
token-info-uri: http://pigx-auth/oauth/check_token
@@ -7,12 +7,12 @@ security:
scope: server
# 默认放行url,子模块重写时application-dev.yml中的公共配置会被覆盖,所以要把公共配置中的放行url再写一次
ignore-urls:
- '/actuator/**'
- '/v2/api-docs'
- '/user/info/*'
- '/social/info/*'
- '/mobile/*'
- '/log/save'
- /actuator/**
- /v2/api-docs
- /user/info/*
- /social/info/*
- /mobile/*
- /log/save
# 数据源
spring: