mybatis生成代码配置类
https://www.yuque.com/u22270414/zwam4w/wkha4n
yaml配置
server:
port: 8005
spring:
application:
name: demo-stream-rabbit-provider
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://192.168.2.20:30569/test?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: root
password: root
# clickhouse配置
click:
driverClassName: ru.yandex.clickhouse.ClickHouseDriver
url: jdbc:clickhouse://192.168.2.20:8123/default
username: default
password: clickhouse
initialSize: 10
maxActive: 100
minIdle: 10
maxWait: 6000
cloud:
nacos:
server-addr: localhost:8848
# server-addr: 192.168.2.20:30010
username: nacos
password: nacos
sentinel:
transport:
dashboard: 192.168.2.20:31596 # 控制台的安装位置
# port: 8719 # 与sentinel单独连接的端口
# client-ip: 192.168.2.6 # 本机的ip,如果sentinel装在虚拟机,必须配这个
# port: 30195 # 与sentinel单独连接的端口
# client-ip: 192.168.2.20 # 本机的ip,如果sentinel装在虚拟机,必须配这个
# 暴露应用信息
management:
endpoints:
web:
exposure:
include: '*'
使用样例
DruidConfig.javaMvcConfig.javaSwaggerConfig.javaStatController.javaStatMapper.javaStat.javaStatService.javaStatServiceImpl.javaClickhouseApplication.javaapplication.ymlpom.xml