Files
cn-data-platform/algorithm/algorithm-boot/src/main/resources/bootstrap.yml

72 lines
1.6 KiB
YAML
Raw Normal View History

2025-01-16 16:20:43 +08:00
#当前服务的基本信息
microservice:
ename: @artifactId@
name: '@name@'
version: @version@
sentinel:
url: @sentinel.url@
gateway:
url: @gateway.url@
server:
port: 10401
#feign接口开启服务熔断降级处理
feign:
sentinel:
enabled: true
2025-05-19 09:52:02 +08:00
compression:
request:
enabled: true
# 配置压缩支持的MIME TYPE
mime-types: text/xml,application/xml,application/json
# 配置压缩数据大小的下限
min-request-size: 1024
response:
# 配置响应GZIP压缩
enabled: true
2025-01-16 16:20:43 +08:00
spring:
application:
name: @artifactId@
cloud:
nacos:
discovery:
ip: @service.server.url@
server-addr: @nacos.url@
namespace: @nacos.namespace@
config:
server-addr: @nacos.url@
namespace: @nacos.namespace@
file-extension: yaml
shared-configs:
- data-id: share-config.yaml
refresh: true
2025-02-10 16:32:56 +08:00
- data-Id: share-config-datasource-db.yaml
2025-01-16 16:20:43 +08:00
refresh: true
main:
allow-bean-definition-overriding: true
2025-02-10 16:32:56 +08:00
liteflow:
rule-source-ext-data-map:
serverAddr: @nacos.url@
dataId: prepare_liteflow
group: DEFAULT_GROUP
namespace: @nacos.namespace@
when-max-wait-time: 600000
print-banner: false
2025-01-16 16:20:43 +08:00
#项目日志的配置
logging:
config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
level:
root:
2025-01-16 16:20:43 +08:00
#mybatis配置信息
mybatis-plus:
#别名扫描
type-aliases-package: com.njcn.harmonic.pojo
2025-03-13 20:38:25 +08:00
line:
2025-04-11 10:40:40 +08:00
num: 20
2025-01-16 16:20:43 +08:00
mqtt:
client-id: @artifactId@${random.value}