Browse Source

调整配置文件

master
liupopo 2 years ago
parent
commit
66c3f1af6f
  1. 7
      warehousing-system/project/wh-manage-xxs/src/main/resources/application-devv.yml
  2. 7
      warehousing-system/project/wh-manage-xxs/src/main/resources/application-pro.yml
  3. 2
      warehousing-system/project/wh-manage-xxs/src/main/resources/application-test.yml
  4. 9
      warehousing-system/project/wh-manage-xxs/src/main/resources/application.yml
  5. 2
      warehousing-system/project/wh-manage-xxs/src/main/resources/logback-spring.xml

7
warehousing-system/project/wh-manage-xxs/src/main/resources/application-devv.yml

@ -1,14 +1,9 @@
spring: spring:
resources: resources:
static-locations: file:D://supervise static-locations: file:D://supervise
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
datasource: datasource:
url: jdbc:mysql://127.0.0.1:3306/warehouse2?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true url: jdbc:mysql://127.0.0.1:3306/warehouse2?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root username: root
#password: 1LAiGz$t1*Iw
password: root password: root
redis: redis:
database: 3 # Redis数据库索引(默认为0) database: 3 # Redis数据库索引(默认为0)
@ -19,6 +14,6 @@ spring:
max-idle: 8 #连接池中的最大空闲连接 max-idle: 8 #连接池中的最大空闲连接
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
min-idle: 0 # 连接池中的最小空闲连接 min-idle: 0 # 连接池中的最小空闲连接
password: 123456 password:
port: 6379 port: 6379
timeout: 0 # 连接超时时间(毫秒) timeout: 0 # 连接超时时间(毫秒)

7
warehousing-system/project/wh-manage-xxs/src/main/resources/application-pro.yml

@ -1,15 +1,10 @@
spring: spring:
resources: resources:
static-locations: file:D://supervise static-locations: file:D://supervise
cloud:
nacos:
discovery:
server-addr: 127.0.0.1:8848
datasource: datasource:
url: jdbc:mysql://127.0.0.1:3306/warehouse2?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true url: jdbc:mysql://127.0.0.1:3306/warehouse_xxs?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root username: root
password: 1LAiGz$t1*Iw password: 1LAiGz$t1*Iw
#password: root
redis: redis:
database: 3 # Redis数据库索引(默认为0) database: 3 # Redis数据库索引(默认为0)

2
warehousing-system/project/wh-manage-xxs/src/main/resources/application-test.yml

@ -1,12 +1,10 @@
spring: spring:
resources: resources:
static-locations: file:D://supervise static-locations: file:D://supervise
datasource: datasource:
url: jdbc:mysql://39.104.100.138:3306/warehouse_xxs?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true url: jdbc:mysql://39.104.100.138:3306/warehouse_xxs?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&autoReconnect=true&allowMultiQueries=true
username: root username: root
password: yxt_mysql_138 password: yxt_mysql_138
#password: root
redis: redis:
database: 3 # Redis数据库索引(默认为0) database: 3 # Redis数据库索引(默认为0)

9
warehousing-system/project/wh-manage-xxs/src/main/resources/application.yml

@ -1,5 +1,5 @@
server: server:
port: 9050 port: 9051
servlet: servlet:
context-path: / context-path: /
multipart: multipart:
@ -8,10 +8,11 @@ server:
max-request-size: 200MB max-request-size: 200MB
spring: spring:
application: application:
name: supervise-wm name: supervise-wm-xxs
profiles: profiles:
active: test active: devv
#active: pro # active: test
# active: pro
messages: messages:
basename: i18n/messages basename: i18n/messages

2
warehousing-system/project/wh-manage-xxs/src/main/resources/logback-spring.xml

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<configuration> <configuration>
<property name="log.base" value="logs/supervise-warehousing" /> <property name="log.base" value="logs/supervise-wm-xxs" />
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder> <encoder>

Loading…
Cancel
Save