| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- # --- server ---
- server:
- port: 9901
- # --- spring ---
- spring:
- servlet:
- multipart:
- max-file-size: 10MB
- max-request-size: 20MB
- profiles:
- active: ${ACTIVE_ENV:dev}
- application:
- name: aitori-bi-service
- datasource:
- username: ${MYSQL_USERNAME:root}
- password: ${MYSQL_PASSWORD}
- url: jdbc:mysql://${MYSQL_HOST:127.0.0.1}:${MYSQL_PROT:3306}/${MYSQL_DATABASE:aitori}?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Tokyo&allowPublicKeyRetrieval=true&tinyInt1isBit=false
- driver-class-name: com.mysql.cj.jdbc.Driver
- data:
- redis:
- host: ${REDIS_HOST:127.0.0.1}
- port: ${REDIS_PORT:6379}
- password: ${REDIS_PASSWORD}
- database: ${REDIS_DATABASE:0}
- timeout: 5000
- lettuce:
- pool:
- enabled: true
- max-active: 8
- max-idle: 8
- min-idle: 1
- max-wait: -1
- shutdown-timeout: 100 # 关闭连接池时的超时时间(毫秒)
- # --- mybatis-plus ---
- mybatis-plus:
- type-aliases-package: com.aitori.entity
- mapper-locations: classpath*:/mapper/**/*.xml
- configuration:
- map-underscore-to-camel-case: true
- # --- log ---
- logging:
- level:
- com.aitori: info
- com.aitori.mapper: debug
- # --- doc ---
- springdoc:
- swagger-ui:
- enabled: true
- path: /swagger-ui.html
- tags-sorter: alpha
- operations-sorter: alpha
- show-extensions: true
- api-docs:
- enabled: true
- path: /v3/api-docs
- default-flat-param-object: true
- packages-to-scan: com.aitori.controller
- knife4j:
- production: ${PRODUCTION:false}
- enable: true
- setting:
- enable-footer: false
- basic:
- enable: true
- username: admin
- password: ${KNIFE4J_PASSWORD:Goodsense1}
- cors: false
- # --- forest ---
- forest:
- backend: okhttp3
- log-enabled: ${FOREST_LOG_ENABLED:true}
- log-request: true
- log-response-status: true
- log-response-content: true
- log-handler: com.aitori.aop.log.ForestLogHandler
- variables:
- model_health_host: https://api.sensenova.cn
- auth_host: https://sit-platform.senseauto.com
- product_name: sensechat
- # --- actuator ---
- management:
- server:
- port: 8090
- address: 0.0.0.0
- endpoints:
- web:
- base-path: /actuator
- exposure:
- # 暴露健康检查端点和Prometheus指标p
- include: health,info,metrics,prometheus
- exclude: shutdown,heapdump,threaddump
- endpoint:
- health:
- # 显示详细健康信息(生产环境建议设置为when-authorized)
- show-details: always
- # 启用Kubernetes探针支持
- probes:
- enabled: true
- # 健康检查组配置
- group:
- # 存活探针 - 检查应用是否运行
- liveness:
- include: ping,diskSpace
- # 就绪探针 - 检查应用是否准备好接收流量
- readiness:
- include: ping,db
- # 启用info端点
- info:
- access: unrestricted
- # 启用metrics端点
- metrics:
- access: unrestricted
- # 启用prometheus端点
- prometheus:
- access: unrestricted
- # Prometheus指标配置
- prometheus:
- metrics:
- export:
- enabled: true
- metrics:
- # 启用JVM指标
- enable:
- jvm: true
- system: true
- web: true
- jdbc: true
- hikaricp: true
- # 自定义标签
- tags:
- application: ${spring.application.name}
- environment: ${spring.profiles.active:dev}
|