疯狂的狮子li
2021-08-06 c06a02fb970f6244cb481ee45ad13b46e260fad1
ruoyi-admin/src/main/resources/application-dev.yml
@@ -4,7 +4,9 @@
    type: com.alibaba.druid.pool.DruidDataSource
    # 动态数据源文档 https://www.kancloud.cn/tracy5546/dynamic-datasource/content
    dynamic:
      #设置默认的数据源或者数据源组,默认值即为 master
      # 性能分析插件(有性能损耗 不建议生产环境使用)
      p6spy: true
      # 设置默认的数据源或者数据源组,默认值即为 master
      primary: master
      datasource:
        # 主库数据源
@@ -42,6 +44,10 @@
        testOnReturn: false
        # 注意这个值和druid原生不一致,默认启动了stat
        filters: stat
--- # druid 配置
spring:
  datasource:
    druid:
      webStatFilter:
        enabled: true
@@ -63,7 +69,9 @@
        wall:
          config:
            multi-statement-allow: true
  # redis 配置
--- # redis 配置
spring:
  redis:
    # 地址
    host: localhost
@@ -78,7 +86,6 @@
    # 是否开启ssl
    ssl: false
--- # redisson 客户端配置
redisson:
  # 线程池数量
  threads: 16
@@ -123,20 +130,6 @@
          prefer-ip: true # 注册实例时,优先使用 IP
        username: ruoyi
        password: 123456
# Actuator 监控端点的配置项
management:
  endpoints:
    web:
      # Actuator 提供的 API 接口的根目录。默认为 /actuator
      base-path: /actuator
      exposure:
        # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
        # 生产环境不建议放开所有 根据项目需求放开即可
        include: '*'
  endpoint:
    logfile:
      external-file: ./logs/sys-console.log
--- # OSS 云存储(界面 <参数设置> 可切换)
cloud-storage: