疯狂的狮子li
2021-04-22 5fcef39a2edede815f48827b7ecdfa6c1478c0b9
ruoyi-admin/src/main/resources/application.yml
@@ -3,7 +3,7 @@
  # 名称
  name: RuoYi
  # 版本
  version: 3.3.0
  version: 3.4.0
  # 版权年份
  copyrightYear: 2021
  # 实例演示开关
@@ -12,8 +12,16 @@
  profile: ${user.dir}/ruoyi/uploadPath
  # 获取ip地址开关
  addressEnabled: false
captcha:
  # 验证码类型 math 数组计算 char 字符验证
  captchaType: math
  # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  captchaCategory: circle
  # 数字验证码位数
  captchaNumberLength: 1
  # 字符验证码长度
  captchaCharLength: 4
# 开发环境配置
server:
@@ -49,6 +57,7 @@
  level:
    com.ruoyi: @logging.level@
    org.springframework: warn
  config: classpath:logback.xml
# Spring配置
spring:
@@ -70,6 +79,33 @@
    restart:
      # 热部署开关
      enabled: true
  application:
    name: ruoyi-vue-plus
  boot:
    admin:
      # Spring Boot Admin Client 客户端的相关配置
      client:
        # 设置 Spring Boot Admin Server 地址
        url: http://localhost:${server.port}${spring.boot.admin.context-path}
        instance:
          prefer-ip: true # 注册实例时,优先使用 IP
#        username: ruoyi
#        password: 123456
      # Spring Boot Admin Server 服务端的相关配置
      context-path: /admin # 配置 Spring
# Actuator 监控端点的配置项
management:
  endpoints:
    web:
      # Actuator 提供的 API 接口的根目录。默认为 /actuator
      base-path: /actuator
      exposure:
        # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。
        include: '*'
  endpoint:
    logfile:
      external-file: ./logs/sys-console.log
# token配置
token:
@@ -84,7 +120,7 @@
# https://baomidou.com/config/
mybatis-plus:
  # 对应的 XML 文件位置
  mapper-locations: classpath*:mapper/**/*Mapper.xml
  mapperLocations: classpath*:mapper/**/*Mapper.xml
  # 实体扫描,多个package用逗号或者分号分隔
  typeAliasesPackage: com.ruoyi.**.domain
  # 针对 typeAliasesPackage,如果配置了该属性,则仅仅会扫描路径下以该类作为父类的域对象
@@ -153,7 +189,7 @@
      # 全局的entity的逻辑删除字段属性名
      logicDeleteField: null
      # 逻辑已删除值
      logicDeleteValue: 1
      logicDeleteValue: 2
      # 逻辑未删除值
      logicNotDeleteValue: 0
      # 字段验证策略之 insert,在 insert 的时候的字段验证策略
@@ -190,3 +226,15 @@
  excludes: /system/notice/*
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*
feign:
  # 开启压缩
  compression:
    request:
      enabled: true
    response:
      enabled: true
  okhttp:
    enabled: true
  hystrix:
    enabled: true