feat: 新增项目配置

This commit is contained in:
han0
2023-10-26 10:38:32 +08:00
parent 2aa2f4049c
commit e5f474f379
5 changed files with 86 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
package mjkf.xinke.main.common.property;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.Arrays;
import java.util.List;
@Data
@ConfigurationProperties(prefix = "main.supervise")
@Component
public class MainSuperviseProperty {
private String dispatcherRoleId;
public List<String> getDispatcherRoleIdList() {
return Arrays.asList(this.dispatcherRoleId.split(","));
}
}

View File

@@ -0,0 +1,18 @@
spring:
datasource:
dynamic:
datasource:
master:
driver-class-name: com.mysql.cj.jdbc.Driver
password: Xxs123456
url: jdbc:mysql://192.168.1.3:4306/material_manage?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true
username: root
redis:
database: 4
host: 127.0.0.1
password: ''
port: 6379
main:
supervise:
dispatcher-role-id: 1677946127227682818,0

View File

@@ -0,0 +1,18 @@
spring:
datasource:
dynamic:
datasource:
master:
driver-class-name: com.mysql.cj.jdbc.Driver
password: lyh123456!
url: jdbc:mysql://localhost:3306/material_manage?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true
username: root
redis:
database: 1
host: 127.0.0.1
password: ''
port: 6379
main:
supervise:
dispatcher-role-id: 1677946127227682818,0

View File

@@ -0,0 +1,18 @@
spring:
datasource:
dynamic:
datasource:
master:
driver-class-name: com.mysql.cj.jdbc.Driver
password: Xxs123456
url: jdbc:mysql://xxs1110.local:4306/material_manage?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&useInformationSchema=true
username: root
redis:
database: 4
host: xxs1110.local
password: 'Xxs123456'
port: 6379
main:
supervise:
dispatcher-role-id: 1677946127227682818,0

View File

@@ -110,7 +110,7 @@ spring:
locale: zh_CN
time-zone: GMT+8
profiles:
active: local
active: dev
redis:
database: 1
host: 127.0.0.1
@@ -127,3 +127,15 @@ spring:
multipart:
max-file-size: 100MB
max-request-size: 100MB
application:
name: material-manage-service
snowy:
config:
common:
backend-url: http://localhost:8192
front-url: http://localhost:8181
ten:
default-ten-id: -1
enabled: true
ignore-table-names: ''
ten-id-column-name: TENANT_ID