修改镜像文件以及配置文件

This commit is contained in:
dxc
2021-05-25 14:20:25 +08:00
parent c3b9238d6d
commit eceef18122
4 changed files with 56 additions and 57 deletions

View File

@ -3,9 +3,16 @@ server:
servlet: servlet:
context-path: / context-path: /
seata:
service:
vgroup-mapping:
biz-service-ebtp-project-service-group: default
grouplist:
default: 10.242.37.148:18035
# 对应 apollo 配置中心的应用名 # 对应 apollo 配置中心的应用名
app: app:
id: biz-service-ebtp-project-dev id: biz-service-ebtp-project
# Apollo 配置信息 # Apollo 配置信息
apollo: apollo:
@ -16,20 +23,13 @@ apollo:
eagerLoad: eagerLoad:
enabled: true enabled: true
seata:
service:
vgroup-mapping:
biz-service-ebtp-project-dev-service-group: default
grouplist:
default: 10.242.37.148:18035
spring: spring:
aop: aop:
auto: true #开启spring的aop配置 auto: true #开启spring的aop配置
proxy-target-class: true proxy-target-class: true
application: application:
name: biz-service-ebtp-project-dev name: biz-service-ebtp-project
shardingsphere: shardingsphere:
datasource: datasource:
@ -99,12 +99,12 @@ spring:
eureka: eureka:
client: client:
service-url: service-url:
defaultZone: http://10.242.37.148:5001/eureka defaultZone: http://eureka-1-svc:8080/eureka, http://eureka-2-svc:8080/eureka, http://eureka-3-svc:8080/eureka
instance: instance:
prefer-ip-address: true prefer-ip-address: true
ip-address: 125.32.114.204 instance-id: http://10.242.37.148:${server.port}
hostname: 125.32.114.204 # 这是客户端的注册地址, eureka 会通过这个地址建立管道
instance-ip: 125.32.114.204:${server.port} ip-address: 10.242.37.148
mybatis-plus: mybatis-plus:
configuration: configuration:
@ -112,7 +112,7 @@ mybatis-plus:
map-underscore-to-camel-case: true map-underscore-to-camel-case: true
auto-mapping-behavior: full auto-mapping-behavior: full
# 这个配置会将执行的sql打印出来在开发或测试的时候可以用 # 这个配置会将执行的sql打印出来在开发或测试的时候可以用
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: classpath*:com/chinaunicom/mall/ebtp/**/mapper/*Mapper.xml mapper-locations: classpath*:com/chinaunicom/mall/ebtp/**/mapper/*Mapper.xml
global-config: global-config:
# 逻辑删除配置 # 逻辑删除配置

View File

@ -41,8 +41,8 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: mall username: mall
password: unicom password: unicom
jdbc-url: jdbc:mysql://10.125.160.37:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:mysql://10.125.160.37:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
url: jdbc:mysql://10.125.160.37:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://10.125.160.37:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
filters: stat,wall,log4j filters: stat,wall,log4j
maxActive: 20 maxActive: 20
initialSize: 1 initialSize: 1

View File

@ -41,8 +41,8 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
username: mall username: mall
password: unicom password: unicom
jdbc-url: jdbc:mysql://10.125.160.30:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true jdbc-url: jdbc:mysql://10.125.160.30:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
url: jdbc:mysql://10.125.160.30:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true url: jdbc:mysql://10.125.160.30:3306/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true
filters: stat,wall,log4j filters: stat,wall,log4j
maxActive: 20 maxActive: 20
initialSize: 1 initialSize: 1
@ -175,4 +175,3 @@ management:
cors: cors:
allowed-origins: "*" allowed-origins: "*"
allowed-methods: "*" allowed-methods: "*"