更新代码
This commit is contained in:
@ -2,42 +2,41 @@ server:
|
||||
port: 18018
|
||||
servlet:
|
||||
context-path: /
|
||||
|
||||
|
||||
# 对应 apollo 配置中心的应用名
|
||||
app:
|
||||
id: biz-service-ebtp-extend
|
||||
|
||||
# Apollo 配置信息
|
||||
apollo:
|
||||
meta: http://10.242.31.158:6001/
|
||||
bootstrap:
|
||||
namespace: application
|
||||
enabled: true
|
||||
eagerLoad:
|
||||
enabled: true
|
||||
seata:
|
||||
enabled: true
|
||||
application-id: biz-service-ebtp-extend
|
||||
tx-service-group: biz-service-ebtp-extend-group
|
||||
enable-auto-data-source-proxy: true
|
||||
use-jdk-proxy: false
|
||||
service:
|
||||
vgroup-mapping:
|
||||
default: default
|
||||
enable-degrade: false
|
||||
disable-global-transaction: false
|
||||
registry:
|
||||
type: eureka
|
||||
eureka:
|
||||
weight: 1
|
||||
service-url: http://${eureka.instance.hostname}:8761/eureka/
|
||||
|
||||
biz-service-ebtp-extend-dev-service-group: default
|
||||
spring:
|
||||
aop:
|
||||
auto: true #开启spring的aop配置
|
||||
proxy-target-class: true
|
||||
|
||||
application:
|
||||
name: biz-service-ebtp-extend
|
||||
name: biz-service-ebtp-extend-dev
|
||||
|
||||
shardingsphere:
|
||||
datasource:
|
||||
# names: ds0,ds1 #主从库名称 开启主从时必须打开
|
||||
names: ds0
|
||||
ds0:
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
username: mall3-ebtp-dev
|
||||
password: mall3-ebtp-dev
|
||||
jdbc-url: jdbc:mysql://125.32.114.204:13306/ebtp_mall_extend?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||||
url: jdbc:mysql://125.32.114.204:13306/ebtp_mall_extend?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: root
|
||||
jdbc-url: jdbc:mysql://10.242.31.158:3033/ebtp_mall_extend?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||||
url: jdbc:mysql://10.242.31.158:3033/ebtp_mall_extend?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||||
filters: stat,wall,log4j
|
||||
maxActive: 20
|
||||
initialSize: 1
|
||||
@ -52,77 +51,51 @@ spring:
|
||||
poolPreparedStatements: true
|
||||
maxOpenPreparedStatements: 20
|
||||
connection-properties: druid.stat.merggSql=ture;druid.stat.slowSqlMillis=5000
|
||||
props:
|
||||
sql:
|
||||
show: true
|
||||
props:
|
||||
sql:
|
||||
show: true
|
||||
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
serialization:
|
||||
write-dates-as-timestamps: false
|
||||
kafka:
|
||||
bootstrap-servers: 127.0.0.1:9092
|
||||
producer:
|
||||
# 写入失败时,重试次数。当leader节点失效,一个repli节点会替代成为leader节点,此时可能出现写入失败,
|
||||
# 当retris为0时,produce不会重复。retirs重发,此时repli节点完全成为leader节点,不会产生消息丢失。
|
||||
retries: 0
|
||||
# 每次批量发送消息的数量,produce积累到一定数据,一次发送
|
||||
batch-size: 2
|
||||
# produce积累数据一次发送,缓存大小达到buffer.memory就发送数据
|
||||
buffer-memory: 33554432
|
||||
#procedure要求leader在考虑完成请求之前收到的确认数,用于控制发送记录在服务端的持久化,其值可以为如下:
|
||||
#acks = 0 如果设置为零,则生产者将不会等待来自服务器的任何确认,该记录将立即添加到套接字缓冲区并视为已发送。在这种情况下,无法保证服务器已收到记录,并且重试配置将不会生效(因为客户端通常不会知道任何故障),为每条记录返回的偏移量始终设置为-1。
|
||||
#acks = 1 这意味着leader会将记录写入其本地日志,但无需等待所有副本服务器的完全确认即可做出回应,在这种情况下,如果leader在确认记录后立即失败,但在将数据复制到所有的副本服务器之前,则记录将会丢失。
|
||||
#acks = all 这意味着leader将等待完整的同步副本集以确认记录,这保证了只要至少一个同步副本服务器仍然存活,记录就不会丢失,这是最强有力的保证,这相当于acks = -1的设置。
|
||||
#可以设置的值为:all, -1, 0, 1
|
||||
acks: 1
|
||||
key-serializer: org.apache.kafka.common.serialization.StringSerializer
|
||||
value-serializer: org.apache.kafka.common.serialization.StringSerializer
|
||||
consumer:
|
||||
group-id: user-group
|
||||
auto-offset-reset: earliest
|
||||
enable-auto-commit: true
|
||||
auto-commit-interval: 100
|
||||
key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
||||
value-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
||||
#=========redis基础配置=========
|
||||
redis:
|
||||
lettuce:
|
||||
# jedis:
|
||||
pool:
|
||||
maxTotal: 50
|
||||
minIdle: 1
|
||||
maxWaitMillis: 5000
|
||||
maxIdle: 5
|
||||
testOnBorrow: true
|
||||
testOnReturn: true
|
||||
testWhileIdle: true
|
||||
token:
|
||||
database: 0
|
||||
host: 125.32.114.204
|
||||
port: 16379
|
||||
password: redis@CC1234
|
||||
timeout: 6000
|
||||
uuid:
|
||||
database: 1
|
||||
host: 125.32.114.204
|
||||
port: 16379
|
||||
password: redis@CC1234
|
||||
timeout: 6000
|
||||
cache:
|
||||
database: 2
|
||||
host: 125.32.114.204
|
||||
port: 16379
|
||||
password: redis@CC1234
|
||||
timeout: 6000
|
||||
|
||||
#=========eureka配置=========
|
||||
# 天宫Kafka增加了安全认证,需要配置安全属性
|
||||
kafka:
|
||||
bootstrap-servers: 10.125.164.192:32005,10.125.164.193:32005,10.125.164.194:32005
|
||||
template:
|
||||
default-topic: jl_test
|
||||
|
||||
# 生产者配置参数
|
||||
producer:
|
||||
client-id: core-service-ebtp-crypt
|
||||
properties:
|
||||
security.protocol: SASL_PLAINTEXT
|
||||
sasl.mechanism: SCRAM-SHA-256
|
||||
sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username="jltest" password="Unicom#123";
|
||||
|
||||
# 消费者配置参数
|
||||
consumer:
|
||||
group-id: core-service-ebtp-crypt-consumer
|
||||
auto-offset-reset: latest
|
||||
properties:
|
||||
security.protocol: SASL_PLAINTEXT
|
||||
sasl.mechanism: SCRAM-SHA-256
|
||||
sasl.jaas.config: org.apache.kafka.common.security.scram.ScramLoginModule required username="jltest" password="Unicom#123";
|
||||
|
||||
# 天宫 redis 需要使用哨兵进行访问
|
||||
redis:
|
||||
sentinel:
|
||||
master: eshop-redis
|
||||
nodes: 10.125.164.124:32718, 10.125.164.118:32716, 10.125.164.121:32716
|
||||
password: Unicom#135
|
||||
|
||||
# 天宫Eureka配置
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://125.32.114.204:8761/eureka/
|
||||
# defaultZone: http://192.168.1.103:8761/eureka/
|
||||
defaultZone: http://10.242.31.158:5001/eureka,http://10.242.31.158:5002/eureka,http://10.242.31.158:5003/eureka
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
instance-id: 125.32.114.204:${server.port}
|
||||
@ -143,50 +116,44 @@ mybatis-plus:
|
||||
# logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2) @TableLogic
|
||||
logic-delete-value: deleted # 逻辑已删除值
|
||||
logic-not-delete-value: normal # 逻辑未删除值
|
||||
# --------------feign ------------
|
||||
feign:
|
||||
hystrix:
|
||||
enabled: true
|
||||
httpclient:
|
||||
enabled: false
|
||||
okhttp:
|
||||
enabled: true
|
||||
client:
|
||||
config:
|
||||
default:
|
||||
connect-timeout: 20000
|
||||
read-timeout: 20000
|
||||
|
||||
hystrix:
|
||||
command:
|
||||
default:
|
||||
execution:
|
||||
timeout:
|
||||
enabled: true
|
||||
isolation:
|
||||
strategy: SEMAPHORE
|
||||
thread:
|
||||
timeoutInMilliseconds: 200000 #熔断超时时间
|
||||
circuitBreaker:
|
||||
sleepWindowInMilliseconds: 20000
|
||||
forceClosed: true
|
||||
|
||||
ribbon:
|
||||
ReadTimeout: 20000 #请求处理的超时时间
|
||||
ConnectTimeout: 20000 #请求连接超时时间
|
||||
MaxAutoRetries: 0 #对当前实例的重试次数
|
||||
MaxAutoRetriesNextServer: 1 #切换实例的重试次数 1
|
||||
|
||||
mconfig:
|
||||
workerId: 1
|
||||
datacenterId: 1
|
||||
remote:
|
||||
approval: true #是否需要提交公告审批
|
||||
media: true #是否需要发送到媒体
|
||||
|
||||
#中国联通电子商城外网接入平台 相关参数
|
||||
token:
|
||||
userName: zbgg
|
||||
password: eip_13579
|
||||
file-wjpt-storage-path: http://111.198.162.67:8081/enr/api/base/file/cgDownload/ #测试地址
|
||||
#获取file地址
|
||||
file:
|
||||
address: http://125.32.114.204:8760/api/core-service-ebtp-updownload/v1/download/oid/
|
||||
#提交审批相关字段
|
||||
approve:
|
||||
wfSectionNo: 002
|
||||
wfSectionName: 采购审批
|
||||
# 服务名
|
||||
feign:
|
||||
name:
|
||||
open: biz-service-ebtp-opening-dev #开标大厅服务
|
||||
process: biz-service-ebtp-process-dev #评审流程服务
|
||||
project: biz-service-ebtp-project-dev #项目服务
|
||||
resps: biz-service-ebtp-resps-dev #应答结构化服务
|
||||
rsms: biz-service-ebtp-rsms-dev #评审结构化服务
|
||||
# 用户暴露给 prometheus 的健康数据
|
||||
management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "*"
|
||||
cors:
|
||||
allowed-origins: "*"
|
||||
allowed-methods: "*"
|
||||
|
Reference in New Issue
Block a user