Files
biz_supplier_manage/src/main/resources/application-local.yml

187 lines
6.1 KiB
YAML
Raw Normal View History

2021-01-15 11:03:36 +08:00
server:
port: 18012
servlet:
context-path: /
2021-03-08 16:45:29 +08:00
seata:
service:
vgroup-mapping:
2024-03-07 17:16:05 +08:00
biz-service-ebtp-project-ceshi-service-group: seata-server-jl
2021-03-08 16:45:29 +08:00
grouplist:
default: 10.242.37.148:18035
2021-01-15 11:03:36 +08:00
spring:
aop:
auto: true #开启spring的aop配置
proxy-target-class: true
2021-03-08 16:45:29 +08:00
2021-01-15 11:03:36 +08:00
application:
2024-03-07 17:16:05 +08:00
name: biz-service-ebtp-project
2021-03-08 16:45:29 +08:00
2021-02-07 19:14:24 +08:00
shardingsphere:
datasource:
names: ds0
ds0:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
2021-04-07 15:04:28 +08:00
username: mall
2024-03-07 17:16:05 +08:00
password: Unicom160_30
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&rewriteBatchedStatements=true
2021-02-07 19:14:24 +08:00
filters: stat,wall,log4j
maxActive: 20
initialSize: 1
maxWait: 60000
minIdle: 1
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 300000
validationQuery: select 'x'
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxOpenPreparedStatements: 20
connection-properties: druid.stat.merggSql=ture;druid.stat.slowSqlMillis=5000
2024-03-07 17:16:05 +08:00
props:
sql:
show: true
2021-02-07 17:29:33 +08:00
2021-01-15 11:03:36 +08:00
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
serialization:
write-dates-as-timestamps: false
2021-03-08 16:45:29 +08:00
# 天宫Kafka增加了安全认证需要配置安全属性
2021-01-15 11:03:36 +08:00
kafka:
bootstrap-servers: 10.125.164.192:32005,10.125.164.193:32005,10.125.164.194:32005
template:
default-topic: jl_test
2021-03-08 16:45:29 +08:00
2021-01-15 11:03:36 +08:00
# 生产者配置参数
producer:
client-id: core-service-ebtp-crypt
2021-03-08 16:45:29 +08:00
properties:
2021-01-15 11:03:36 +08:00
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";
2021-03-08 16:45:29 +08:00
# 消费者配置参数
2021-01-15 11:03:36 +08:00
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";
2021-03-08 16:45:29 +08:00
2021-01-15 11:03:36 +08:00
# 天宫 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
2024-03-07 17:16:05 +08:00
database:
idempotent: 0
sharding: 1
cache: 2
backup: 3
2021-01-15 11:03:36 +08:00
# 天宫Eureka配置
eureka:
2021-02-01 12:49:03 +08:00
client:
service-url:
2024-03-07 17:16:05 +08:00
defaultZone: http://10.242.31.158:5002/eureka,http://10.242.31.158:5003/eureka
2021-01-15 11:03:36 +08:00
instance:
prefer-ip-address: true
2021-03-08 17:12:45 +08:00
ip-address: 125.32.114.204
hostname: 125.32.114.204
2024-03-07 17:16:05 +08:00
instance-id: 125.32.114.204:${server.port}
2021-01-15 11:03:36 +08:00
mybatis-plus:
configuration:
# 是否开启自动驼峰命名规则映射:从数据库列名到Java属性驼峰命名的类似映射
map-underscore-to-camel-case: true
auto-mapping-behavior: full
# 这个配置会将执行的sql打印出来在开发或测试的时候可以用
2021-05-20 08:23:09 +08:00
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
2021-01-15 11:03:36 +08:00
mapper-locations: classpath*:com/chinaunicom/mall/ebtp/**/mapper/*Mapper.xml
global-config:
# 逻辑删除配置
db-config:
# logic-delete-field: flag # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2) @TableLogic
2024-03-07 17:16:05 +08:00
logic-delete-value: 0 # 逻辑已删除值
logic-not-delete-value: 1 # 逻辑未删除值
2021-03-08 16:45:29 +08:00
2021-01-15 11:03:36 +08:00
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
strategy: SEMAPHORE
thread:
2024-03-07 17:16:05 +08:00
timeoutInMilliseconds: 600000 #熔断超时时间
2021-01-15 11:03:36 +08:00
circuitBreaker:
sleepWindowInMilliseconds: 20000
forceClosed: true
2021-03-08 16:45:29 +08:00
2021-01-15 11:03:36 +08:00
ribbon:
2024-03-07 17:16:05 +08:00
ReadTimeout: 60000 #请求处理的超时时间
2021-01-15 11:03:36 +08:00
ConnectTimeout: 20000 #请求连接超时时间
MaxAutoRetries: 0 #对当前实例的重试次数
MaxAutoRetriesNextServer: 1 #切换实例的重试次数 1
2021-03-08 16:45:29 +08:00
2021-01-15 11:03:36 +08:00
mconfig:
swagger-ui-open: true
exception-handle-enabled: true
seata-open-enabled: false
2024-03-07 17:16:05 +08:00
work-id: 1
datacenter-id: 5
2021-03-08 16:45:29 +08:00
host-name: http://10.242.37.148/
2021-01-15 11:03:36 +08:00
service-name-purp: mall-purp #采购系统委托项目微服务
2021-02-01 17:37:46 +08:00
service-name-wfap: mall-wfap #重新评审 流程微服务
service-name-resu: mall-resu #重新评审 项目中心查询服务
2021-03-08 16:45:29 +08:00
service-price-query : biz-service-price-query #商城询价服务
service-price-usercenter: core-service-usercenter-public #用户中心服务
#内部服务
service-name-archive: biz-service-ebtp-archive #归档服务
service-name-auction: biz-service-ebtp-auction #竞拍服务API
service-name-calibration: biz-service-ebtp-calibration #标段定标接口
2021-03-08 16:45:29 +08:00
service-name-bid: biz-service-ebtp-bid #标段出始化流程
service-name-process: biz-service-ebtp-process #标段出始化流程
service-name-resps : biz-service-ebtp-resps #标段应答文件
service-name-rsms : biz-service-ebtp-rsms #评审微服务
service-name-tender : biz-service-ebtp-tender #标段投标微服务
2024-03-07 17:16:05 +08:00
service-name-evaluation : biz-service-ebtp-evaluation
service-name-open : biz-service-ebtp-opening
service-name-notification : core-service-notification-center
wfSectionNo: '080'
wfSectionName: 标段重新评审审批单
2021-03-08 16:45:29 +08:00
2024-03-07 17:16:05 +08:00
2021-03-08 16:45:29 +08:00
# 用户暴露给 prometheus 的健康数据
2021-01-27 15:48:16 +08:00
management:
endpoints:
web:
exposure:
include: "*"
cors:
allowed-origins: "*"
2021-02-08 12:02:38 +08:00
allowed-methods: "*"
2022-02-15 09:33:28 +08:00
health:
mongo:
enabled: false
2024-03-07 17:16:05 +08:00
client:
clientHttpUrl: http://10.242.31.158:8100/auth/oauth/token?grant_type=client_credentials&client_id=bVS46ElU&client_secret=58ea04ba02475c8da2321cc99849d2a10f15b749
allow:
apis:
- ^POST\./?v1/.*$
- ^GET\./?v1/.*$