mybatis生成代码配置类

https://www.yuque.com/u22270414/zwam4w/wkha4n

yaml配置

  1. server:
  2. port: 8005
  3. spring:
  4. application:
  5. name: demo-stream-rabbit-provider
  6. datasource:
  7. type: com.alibaba.druid.pool.DruidDataSource
  8. driver-class-name: com.mysql.jdbc.Driver
  9. url: jdbc:mysql://192.168.2.20:30569/test?useUnicode=true&characterEncoding=utf-8&useSSL=false
  10. username: root
  11. password: root
  12. # clickhouse配置
  13. click:
  14. driverClassName: ru.yandex.clickhouse.ClickHouseDriver
  15. url: jdbc:clickhouse://192.168.2.20:8123/default
  16. username: default
  17. password: clickhouse
  18. initialSize: 10
  19. maxActive: 100
  20. minIdle: 10
  21. maxWait: 6000
  22. cloud:
  23. nacos:
  24. server-addr: localhost:8848
  25. # server-addr: 192.168.2.20:30010
  26. username: nacos
  27. password: nacos
  28. sentinel:
  29. transport:
  30. dashboard: 192.168.2.20:31596 # 控制台的安装位置
  31. # port: 8719 # 与sentinel单独连接的端口
  32. # client-ip: 192.168.2.6 # 本机的ip,如果sentinel装在虚拟机,必须配这个
  33. # port: 30195 # 与sentinel单独连接的端口
  34. # client-ip: 192.168.2.20 # 本机的ip,如果sentinel装在虚拟机,必须配这个
  35. # 暴露应用信息
  36. management:
  37. endpoints:
  38. web:
  39. exposure:
  40. include: '*'

使用样例

DruidConfig.javaMvcConfig.javaSwaggerConfig.javaStatController.javaStatMapper.javaStat.javaStatService.javaStatServiceImpl.javaClickhouseApplication.javaapplication.ymlpom.xml