Files
pqs/pqs-harmonic/harmonic-boot/src/main/resources/bootstrap.yml

73 lines
1.5 KiB
YAML
Raw Normal View History

2022-06-21 20:47:46 +08:00
#当前服务的基本信息
microservice:
ename: @artifactId@
name: '@name@'
version: @version@
sentinel:
url: @sentinel.url@
gateway:
url: @gateway.url@
server:
port: 10204
#feign接口开启服务熔断降级处理
feign:
sentinel:
enabled: true
spring:
application:
name: @artifactId@
#nacos注册中心以及配置中心的指定
cloud:
nacos:
discovery:
2022-07-13 15:44:05 +08:00
ip: @service.server.url@
2022-06-21 20:47:46 +08:00
server-addr: @nacos.url@
namespace: @nacos.namespace@
2025-03-14 16:02:38 +08:00
#username: @nacos.username@
#password: @nacos.password@
2022-06-21 20:47:46 +08:00
config:
server-addr: @nacos.url@
namespace: @nacos.namespace@
2025-03-14 16:02:38 +08:00
#username: @nacos.username@
#password: @nacos.password@
2022-06-21 20:47:46 +08:00
file-extension: yaml
shared-configs:
- data-id: share-config.yaml
refresh: true
2024-01-29 09:19:15 +08:00
#数据中心使用
2025-07-28 21:01:45 +08:00
# - data-Id: share-config-datasource-db.yaml
# refresh: true
2024-01-29 10:00:16 +08:00
#PMS使用
- data-Id: share-config-harmonic-db.yaml
2022-06-21 20:47:46 +08:00
refresh: true
main:
allow-bean-definition-overriding: true
2022-11-08 09:48:02 +08:00
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
2023-07-26 11:20:12 +08:00
jackson:
time-zone: GMT+8
2022-06-21 20:47:46 +08:00
#项目日志的配置
logging:
config: http://@nacos.url@/nacos/v1/cs/configs?tenant=@nacos.namespace@&group=DEFAULT_GROUP&dataId=logback.xml
level:
root: info
#mybatis配置信息
mybatis-plus:
type-aliases-package: com.njcn.harmonic.pojo
global-config:
enable-sql-runner: true
2022-06-21 20:47:46 +08:00
2022-07-13 15:44:05 +08:00
mqtt:
2022-07-13 20:16:32 +08:00
client-id: @artifactId@${random.value}
2022-06-21 20:47:46 +08:00