zhuo
2025-03-04 56176807796365e1cdab78f1529d64a8e56921b7
ruoyi-admin/src/main/resources/application.yml
@@ -7,7 +7,7 @@
  # 版权年份
  copyrightYear: 2025
  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  profile: D:/ruoyi/uploadPath
  profile: /javaWork/lims-ruoyi/file/uploadPath
  # 获取ip地址开关
  addressEnabled: false
  # 验证码类型 math 数字计算 char 字符验证
@@ -33,8 +33,9 @@
# 日志配置
logging:
  file-location: /javaWork/lims-ruoyi
  level:
    com.ruoyi: debug
    com.ruoyi: info
    org.springframework: warn
# 用户配置
@@ -53,6 +54,10 @@
    basename: i18n/messages
  profiles:
    active: druid
  # 全局时间处理 LocalDateTime时间序列号
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
  # 文件上传
  servlet:
    multipart:
@@ -61,10 +66,10 @@
      # 设置总上传的文件大小
      max-request-size: 20MB
  # 服务模块
  devtools:
    restart:
      # 热部署开关
      enabled: true
#  devtools:
#    restart:
#      # 热部署开关
#      enabled: false
  # redis 配置
  redis:
    # 地址
@@ -73,8 +78,8 @@
    port: 6379
    # 数据库索引
    database: 0
    # 密码
    password:
#    # 密码
#    password: root2022!
    # 连接超时时间
    timeout: 10s
    lettuce:
@@ -95,16 +100,7 @@
  # 令牌密钥
  secret: abcdefghijklmnopqrstuvwxyz
  # 令牌有效期(默认30分钟)
  expireTime: 30
# MyBatis配置
mybatis:
  # 搜索指定包别名
  typeAliasesPackage: com.ruoyi.**.domain
  # 配置mapper的扫描,找到所有的mapper.xml映射文件
  mapperLocations: classpath*:mapper/**/*Mapper.xml
  # 加载全局的配置文件
  configLocation: classpath:mybatis/mybatis-config.xml
  expireTime: 450
# PageHelper分页插件
pagehelper:
@@ -116,8 +112,6 @@
swagger:
  # 是否开启swagger
  enabled: true
  # 请求前缀
  pathMapping: /dev-api
# 防止XSS攻击
xss:
@@ -127,3 +121,17 @@
  excludes: /system/notice
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*
# mybatis-plus配置
mybatis-plus:
  mapper-locations: classpath*:mapper/**/*Mapper.xml
  type-aliases-package: com.ruoyi.**.domain
  global-config:
    banner: off
    db-config:
      id-type: auto
  configuration:
    map-underscore-to-camel-case: true
    cache-enabled: false
    log-impl: # org.apache.ibatis.logging.stdout.StdOutImpl