Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
ms-data-circulation-portal-service
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9372021d
authored
2025-02-21 09:53:03 +0800
by
郭燕华
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加准备发布到正式环境的配置文件
1 parent
cc0314cf
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
277 additions
and
0 deletions
pom.xml
src/main/resources/zq-release/lt/application.yml
src/main/resources/zq-release/lt/bootstrap.yml
pom.xml
View file @
9372021
...
...
@@ -92,6 +92,7 @@
<exclude>
release/*
</exclude>
<exclude>
develop/*
</exclude>
<exclude>
release-test/*
</exclude>
<exclude>
zq-release/*
</exclude>
</excludes>
<!--开启过滤器,此处不能忽略!-->
<filtering>
true
</filtering>
...
...
@@ -207,6 +208,41 @@
<subPath>
project
</subPath>
</properties>
</profile>
<profile>
<id>
zq-production-daop-master
</id>
<properties>
<profileActive>
zq-release
</profileActive>
<subPath></subPath>
</properties>
</profile>
<profile>
<id>
zq-production-daop-lt
</id>
<properties>
<profileActive>
zq-release
</profileActive>
<subPath>
lt
</subPath>
</properties>
</profile>
<profile>
<id>
zq-production-daop-zcgl
</id>
<properties>
<profileActive>
zq-release
</profileActive>
<subPath>
zcgl
</subPath>
</properties>
</profile>
<profile>
<id>
zq-production-daop-jgjf
</id>
<properties>
<profileActive>
zq-release
</profileActive>
<subPath>
jgjf
</subPath>
</properties>
</profile>
<profile>
<id>
zq-production-daop-project
</id>
<properties>
<profileActive>
zq-release
</profileActive>
<subPath>
project
</subPath>
</properties>
</profile>
</profiles>
</project>
...
...
src/main/resources/zq-release/lt/application.yml
0 → 100644
View file @
9372021
server
:
port
:
19210
monitor
:
log-white
:
#服务全局名称
spring
:
application
:
name
:
ms-data-circulation-portal-service
jackson
:
time-zone
:
Asia/Shanghai
cloud
:
inetutils
:
ignored-interfaces
:
docker0
# 让应用忽略docker0网卡
compatibility-verifier
:
enabled
:
false
gateway
:
gatewayServiceName
:
gateway-server
host
:
114.115.131.96
kafka
:
bootstrap-servers
:
kafka-cs-develop.daop:9092
producer
:
retries
:
3
main
:
allow-bean-definition-overriding
:
true
datasource
:
sql-script-encoding
:
utf-8
#type: org.apache.commons.dbcp2.BasicDataSource
#如果使用TCC事务这个type必须指定,否则会抛出: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection;
dynamic
:
primary
:
master
druid
:
initial-size
:
0
max-active
:
50
min-idle
:
2
max-wait
:
-1
min-evictable-idle-time-millis
:
30000
max-evictable-idle-time-millis
:
30000
time-between-eviction-runs-millis
:
0
validation-query
:
select 1
validation-query-timeout
:
-1
test-on-borrow
:
false
test-on-return
:
false
test-while-idle
:
true
pool-prepared-statements
:
true
# max-open-prepared-statements: 100
filters
:
stat,wall
share-prepared-statements
:
true
wall
:
config
:
condition-double-const-allow
:
true
condition-and-alway-true-allow
:
true
##由mycat管理读写分离 不用代码控制(填写mycat的链接库)
datasource
:
master
:
url
:
jdbc:mysql://192.168.6.21:3306/csbr_data_circulation_portal?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai&connectTimeout=60000&socketTimeout=60000
username
:
sharding
password
:
dJ5xF7qC
driver-class-name
:
com.mysql.cj.jdbc.Driver
druid
:
initial-size
:
5
slave
:
url
:
jdbc:mysql://192.168.6.21:3306/csbr_data_circulation_portal?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai&connectTimeout=60000&socketTimeout=60000
username
:
sharding
password
:
dJ5xF7qC
driver-class-name
:
com.mysql.cj.jdbc.Driver
druid
:
initial-size
:
5
# redis配置
data
:
redis
:
# 集群
#cluster:
# nodes: redis-service.redis:6379
# 单节点
#host: redis-service.daop
#port: 6379
#password: "J7e411m693cA9"
timeout
:
1000
prefix
:
daop-release
jedis
:
pool
:
max-idle
:
8
max-wait
:
2000
min-idle
:
0
max-active
:
100
test-on-borrow
:
true
test-while-idle
:
true
sql
:
init
:
schema-locations
:
classpath*:init.sql
encoding
:
UTF-8
mode
:
never
redisson
:
address
:
redis://redis-service.daop:6379
password
:
"
J7e411m693cA9"
seata
:
enabled
:
true
# 1.0新特性,需要依赖seata-spring-boot-starter,默认为true
tx-service-group
:
my_test_tx_group
application-id
:
ms-data-circulation-portal-service
registry
:
type
:
nacos
nacos
:
application
:
seata-server
cluster
:
seata-cluster
server-addr
:
nacos-cluster-service-develop.nacos-cluster:8848
password
:
U9u457p155vH@8
username
:
nacos
namespace
:
daop-lt
group
:
release
service
:
vgroupMapping
:
my_test_tx_group
:
seata-cluster
grouplist
:
default
:
ms-daop-seata-service-release:8091
#数据库字段开启驼峰
mybatis
:
configuration
:
map-underscore-to-camel-case
:
true
callSettersOnNulls
:
true
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus
:
global-config
:
db-config
:
id-type
:
ASSIGN_UUID
logic-delete-value
:
"
null"
logic-not-delete-value
:
N
mapper-locations
:
classpath*:mapper/**/*Mapper.xml
type-aliases-package
:
com.csbr.qingcloud.common.mybatis
##生产环境屏蔽此配置 优化性能
configuration
:
log-impl
:
org.apache.ibatis.logging.stdout.StdOutImpl
pagehelper
:
helperDialect
:
mysql
reasonable
:
true
supportMethodsArguments
:
true
params
:
count=countSql
csbr
:
kafka
:
topic-prefix
:
DAOP-LT-RELEASE
consumer
:
# 开启kafka消费者
enable
:
true
# kafka 服务集群地址,格式:HOST:PORT ,用逗号隔开
# bootstrap-servers: 210.12.100.201:9092
bootstrap-servers
:
kafka-cs-develop.daop:9092
# bootstrap-servers: 192.168.3.120:9092
# 是否启用自动提交 offset
enable-auto-commit
:
false
# 自动提交间隔时间(MS),仅在自动提交开启时有效
auto-commit-interval
:
100
# 自动重置 offset。 latest:从最后开始,earliest: 从 offset 为 0 开始
auto-offset-reset
:
latest
# 消息 key 的反序列化方法
key-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
# 消息 value 的反序列化方法
value-deserializer
:
org.apache.kafka.common.serialization.StringDeserializer
# listener 开启的线程数
concurrency
:
2
# session 超时时间
session-timeout
:
60000
# 最大 poll 消息间隔时间,如果处理时间过长会导致异常
max-poll-interval
:
10000
# 最大 poll 消息数量
max-poll-records
:
2
producer
:
# 开启kafka生产者
enable
:
true
# kafka 服务集群地址,格式:HOST:PORT ,多地址用逗号隔开
# bootstrap-servers: 210.12.100.201:9092
bootstrap-servers
:
kafka-cs-develop.daop:9092
# bootstrap-servers: 192.168.3.120:9092
# 失败后的重发次数
retries
:
0
# 一次最多发送的数据量
batch-size
:
4096
# 32M批处理缓冲区
buffer-memory
:
33554432
# 生产者生产消息间隔,数值越大,间隔越长,用来减缓消费压力
linger
:
1
feign
:
hystrix
:
enabled
:
false
query-limit
:
white
:
TrTaskValid
src/main/resources/zq-release/lt/bootstrap.yml
0 → 100644
View file @
9372021
spring
:
application
:
name
:
ms-data-circulation-portal-service
cloud
:
nacos
:
#配置中心
config
:
server-addr
:
nacos-cluster-service.nacos-cluster:8848
file-extension
:
yaml
group
:
zq-release
namespace
:
daop-lt
# 开启nacos自动刷新,如果这个配置没有或者为false会导致配置不能自动刷新(auto-refresh、enable-remote-sync-config两者缺一不可)
auto-refresh
:
true
# 允许nacos服务端向本地同步配置
enable-remote-sync-config
:
true
#注册中心
discovery
:
enabled
:
true
server-addr
:
nacos-cluster-service.nacos-cluster:8848
group
:
zq-release
namespace
:
daop-lt
metadata
:
code
:
"
004"
user
:
name
:
nacos
password
:
nacos
management
:
context-path
:
/actuator
#接口限流
sentinel
:
transport
:
# port: 7777
dashboard
:
sentinel-service.nacos-cluster:8858
#取消懒加载
eager
:
true
management
:
endpoint
:
health
:
show-details
:
always
endpoints
:
web
:
exposure
:
include
:
'
*'
###暂时禁用rabbit的健康检查
health
:
rabbit
:
enabled
:
false
sentinel
:
enabled
:
false
feign
:
sentinel
:
enabled
:
true
\ No newline at end of file
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment