|
@@ -0,0 +1,86 @@
|
|
|
+spring:
|
|
|
+ datasource:
|
|
|
+ username: dcuc
|
|
|
+ password: 123
|
|
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
+ url: jdbc:mysql://10.254.10.31:3306/dcuc_tjdsj_2.0?useUnicode=true&characterEncoding=UTF-8&serverTimezone=UTC
|
|
|
+ druid:
|
|
|
+ filters: sqlaudit
|
|
|
+ application:
|
|
|
+ name: dcuc-app
|
|
|
+ cloud:
|
|
|
+ nacos:
|
|
|
+ discovery:
|
|
|
+ # 配置nacos地址
|
|
|
+ server-addr: 10.254.11.203:8848
|
|
|
+ servlet:
|
|
|
+ multipart:
|
|
|
+ # 设置文件上传大小,springboot默认的最大上传大小是1MB
|
|
|
+ max-file-size: 150MB
|
|
|
+ max-request-size: 150MB
|
|
|
+ kafka:
|
|
|
+ producer:
|
|
|
+ bootstrap-servers: 192.168.10.20:9093
|
|
|
+ #kafka消费者配置
|
|
|
+ consumer:
|
|
|
+ bootstrap-servers: 192.168.10.20:9093
|
|
|
+ enable-auto-commit: true
|
|
|
+ auto-commit-interval: 1000
|
|
|
+ group-id: serviceGroup
|
|
|
+ max-poll-records: 500
|
|
|
+ security:
|
|
|
+ protocol: PLAINTEXT
|
|
|
+ fetch-max-wait: 300000
|
|
|
+ auto-offset-reset: earliest
|
|
|
+ sasl:
|
|
|
+ mechanism: PLAIN
|
|
|
+ key-deserializer: org.apache.kafka.common.serialization.StringDeserializer
|
|
|
+ value-deserializer: org.apache.kafka.common.serialization.ByteArrayDeserializer
|
|
|
+ jaas:
|
|
|
+ enabled: false
|
|
|
+ redis:
|
|
|
+ host: 10.254.11.203
|
|
|
+ port: 6379
|
|
|
+server:
|
|
|
+ port: 21898
|
|
|
+management:
|
|
|
+ endpoints:
|
|
|
+ web:
|
|
|
+ exposure:
|
|
|
+ include: '*'
|
|
|
+mybatis-plus:
|
|
|
+ mapper-locations: classpath:mapping/**/*Mapper.xml
|
|
|
+ global-config:
|
|
|
+ db-config:
|
|
|
+ logic-delete-value: 1
|
|
|
+ logic-not-delete-value: 0
|
|
|
+duceap:
|
|
|
+ flyway:
|
|
|
+ # 是否执行flyway
|
|
|
+ enabled: false
|
|
|
+ # 执行flyway路径
|
|
|
+ locations: classpath:/config/mysql
|
|
|
+ mybatis-plus:
|
|
|
+ map-camel-case-to-underscore: true
|
|
|
+ auditlog:
|
|
|
+ login:
|
|
|
+ enabled: false
|
|
|
+ audit:
|
|
|
+ enabled: false
|
|
|
+ sqlaudit:
|
|
|
+ output: kafka
|
|
|
+ exclude-tables: T_LOG_*
|
|
|
+ license:
|
|
|
+ enabled: false
|
|
|
+ #配置用来指定license对接的后端项目地址(格式:ip:port/context,如http://10.10.10.10:8080/ctx),
|
|
|
+ #默认使用HttpServletRequest.getLocalAddr()方法获取ip地址,
|
|
|
+ #应用在docker部署环境中无法获取机子的真实ip地址 考虑以配置参数的形式传入
|
|
|
+ address: http://127.0.0.1:21898
|
|
|
+ dataCacheMethod: apollo
|
|
|
+ apollo:
|
|
|
+ client:
|
|
|
+ #apollo客户端(许可)
|
|
|
+ host: http://10.201.3.20:8070
|
|
|
+logging:
|
|
|
+ level:
|
|
|
+ com.dragoninfo.dcuc.app.mapper: debug
|