feat: 新增项目配置
This commit is contained in:
@@ -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(","));
|
||||||
|
}
|
||||||
|
}
|
18
src/main/resources/application-dev.yml
Normal file
18
src/main/resources/application-dev.yml
Normal 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
|
18
src/main/resources/application-prod.yml
Normal file
18
src/main/resources/application-prod.yml
Normal 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
|
18
src/main/resources/application-test.yml
Normal file
18
src/main/resources/application-test.yml
Normal 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
|
@@ -110,7 +110,7 @@ spring:
|
|||||||
locale: zh_CN
|
locale: zh_CN
|
||||||
time-zone: GMT+8
|
time-zone: GMT+8
|
||||||
profiles:
|
profiles:
|
||||||
active: local
|
active: dev
|
||||||
redis:
|
redis:
|
||||||
database: 1
|
database: 1
|
||||||
host: 127.0.0.1
|
host: 127.0.0.1
|
||||||
@@ -127,3 +127,15 @@ spring:
|
|||||||
multipart:
|
multipart:
|
||||||
max-file-size: 100MB
|
max-file-size: 100MB
|
||||||
max-request-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
|
Reference in New Issue
Block a user