123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254 |
- ruoyi:
- # 安全配置
- security:
- # IP黑名单
- ips:
- - 1.1.1.1
- # 放行白名单
- whites:
- - /captcha
- - /login
- - /logout
- - /register
- - /solon-admin/**
- - /healthz
- - /doc.html
- - /swagger-resources
- - /swagger/*
- - /webjars/js/**
- - /webjars/css/**
- # XSS配置
- xss:
- # 过滤开关
- enabled: true
- # 排除路径
- excludes:
- # - /system/notice
- # 验证码配置
- captcha:
- # 验证码开关
- enabled: true
- # 干扰类型: line 线段干扰、circle 圆圈干扰、shear 扭曲干扰
- invadeType: line
- # 验证码类型: math 四则运算、char 字符
- type: math
- # 登录配置
- login:
- # 登录失败最大次数
- errorCount: 5
- # 登录失败达最大次数后的锁定时长(单位:分钟)
- lockTime: 10
- # 代码生成配置
- gen:
- # 作者
- author: ruoyi
- # 默认生成包路径 system 需改成自己的模块名称 如 system monitor tool
- packageName: com.ruoyi.system
- # 自动去除表前缀,默认是false
- autoRemovePre: false
- # 表前缀(生成类名不会包含表前缀,多个用逗号分隔)
- tablePrefix: demo_
- # 忽略的表前缀(不会查询这些前缀的表)
- ignoreTablePrefix: [qrtz_, gen_, sys_]
- # 文件配置
- file:
- # 允许上传的文件大小(单位:MB,设为-1不限制)
- maxSize: 2
- # 允许上传的文件类型
- fileType: [jpg, jpeg, png, doc, docx, xls, xlsx, ppt, txt, pdf, zip]
- # 本地保存路径
- savePath: D:/ruoyi/uploadPath
- # 本地文件请求路径前缀
- requestPrefix: http://localhost:90/ruoyi-file
-
- server:
- request:
- # 设定最大的请求包大小(或表单项的值大小,默认:2M)
- maxBodySize: 2mb
- # 最大的上传文件大小(默认使用 maxBodySize 配置值)
- maxFileSize: 5mb
- # 最大的请求头大小(默认:8k)
- maxHeaderSize: 8kb
- # 请求体编码
- encoding: utf-8
- response:
- # 响应体编码
- encoding: utf-8
-
- solon:
- # 序列化
- serialization:
- json:
- dateAsFormat: yyyy-MM-dd HH:mm:ss # 配置日期格式(默认输出为时间戳)
- dateAsTimeZone: GMT+8 # 配置时区
- # dateAsTicks: false # 将date转为毫秒数(和 dateAsFormat 二选一)
- longAsString: true # 将long型转为字符串输出(默认为false)
- boolAsInt: false # 将bool型转为字符串输出(默认为false)
- nullStringAsEmpty: false
- nullBoolAsFalse: false
- nullNumberAsZero: false
- nullArrayAsEmpty: false
- nullAsWriteable: false # 输出所有null值
- enumAsName: false # 枚举使用名字
- # 监控服务端配置
- admin:
- server:
- # 心跳速率,单位:毫秒
- heartbeatInterval: 10000
- # 客户端监控周期,单位:毫秒
- clientMonitorPeriod: 5000
- # 连接超时,单位:毫秒
- connectTimeout: 5000
- # 读取超时,单位:毫秒
- readTimeout: 5000
- # 界面路径(自定义时要以'/'结尾)
- uiPath: /solon-admin/
- # 基础签权(可以多个)
- basicAuth:
- admin: 123456
- # 监控客户端配置
- client:
- # 令牌:监视接口的安全控制
- token: 3C41D632-A070-060C-40D2-6D84B3C07094
- # 连接超时,单位:毫秒
- connectTimeout: 5000
- # 读取超时,单位:毫秒
- readTimeout: 5000
- # 是否向服务端发送敏感信息,如环境变量等
- showSecretInformation: false
- # 监控项配置
- health:
- # 可选: *、disk、cpu、jvm、memory、os、qps(多个用,分隔)
- detector: "*"
- # 接口文档
- docs:
- routes:
- - id: openapi
- groupName: 系统接口
- info:
- title: 接口文档
- description: 在线API文档
- # termsOfService: https://gitee.com/noear/solon
- contact:
- name: ruoyi
- version: 1.0
- schemes:
- - HTTP
- - HTTPS
- globalResponseInData: true
- globalResult: org.noear.solon.core.handle.Result
- apis:
- - basePackage: com.ruoyi.web.controller
-
- sa-token:
- # token名称(同时也是 cookie名称)
- token-name: Authorization
- # token前缀
- token-prefix: Bearer
- # token有效期(单位:秒) 默认30天,-1 代表永久有效
- timeout: 2592000
- # token临时有效期 (指定时间内无操作就视为token过期,单位:秒),默认-1 代表不限制,永不冻结
- active-timeout: -1
- # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
- is-concurrent: false
- # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
- is-share: true
- # token风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
- token-style: uuid
- # 是否输出操作日志
- is-log: true
-
- # mybatis-flex 数据源及 mybatis配置
- mybatis-flex:
- # 动态数据源
- datasource:
- sqlite:
- type: com.zaxxer.hikari.HikariDataSource
- driverClassName: org.sqlite.JDBC
- jdbcUrl: jdbc:sqlite::resource:static/cmc-temperature.db?date_string_format=yyyy-MM-dd HH:mm:ss
- username:
- password:
- access:
- type: com.zaxxer.hikari.HikariDataSource
- driverClassName: net.ucanaccess.jdbc.UcanaccessDriver
- # jdbcUrl: jdbc:ucanaccess:///home/cmcgis/projects/cmc-temperature/Data/SKREC_ID1.accdb;showSchema=false;sysSchema=false;memory=false;keepMirror=true;immediatelyReleaseResources=true;openExclusive=false;net.ucanaccess.metadata=ignore;ignoreCase=true;logLevel=WARNING;newDatabaseVersion=V2007
- jdbcUrl: jdbc:ucanaccess://E:/Java/cmc-temperature/cmc-temperature-back/sql/Data/SKREC_ID1.accdb;memory=false;keepMirror=true;immediatelyReleaseResources=true;ignorecase=true;showschema=false;sysschema=false;openExclusive=false
- username:
- password:
- # type: com.zaxxer.hikari.HikariDataSource
- # driverClassName: com.mysql.cj.jdbc.Driver
- # jdbcUrl: jdbc:mysql://127.0.0.1:3306/ry-vue?useUnicode=true&characterEncoding=utf8&autoReconnect=true&rewriteBatchedStatements=true
- # username: root
- # password:
- # slave_1:
- # type: com.zaxxer.hikari.HikariDataSource
- # driverClassName: com.mysql.cj.jdbc.Driver
- # jdbcUrl: jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=utf8&autoReconnect=true&rewriteBatchedStatements=true
- # username: root
- # password:
- # 实体扫描
- type-aliases-package:
- - com.ruoyi.system.domain.*
- - com.cmc.temperature.domain.*
- # mapper扫描
- mapper-locations:
- # 如果没有对应 xml文件的 mapper,必须配置一下 mapper的扫描路径
- # - com.ruoyi.system.mapper.*
- # 如果有 xml文件,只需要配置 xml文件的扫描路径,xml对应的 mapper会自动关联进去
- - classpath:mapper/**/*.xml
- # Mybatis 的扩展配置
- configuration:
- cacheEnabled: false
- mapUnderscoreToCamelCase: true
- # Mybatis-Flex 的全局配置
- global-config:
- print-banner: true
- # 不配置逻辑删除字段将会真删除
- logic-delete-column: del_flag
- # 主键配置
- key-config:
- # Auto自增
- key-type: Auto
- # value:
-
- # Redis配置
- redis:
- cache_source:
- # config: |
- # singleServerConfig:
- # address: redis://cmc-redis:6379
- # password:
- # database: 7
- # codec: !<org.redisson.codec.JsonJacksonCodec> {}
- config: |
- singleServerConfig:
- address: redis://localhost:6379
- password:
- database: 7
- codec: !<org.redisson.codec.JsonJacksonCodec> {}
-
- # 分页插件配置
- pagehelper:
- offsetAsPageNum: true
- rowBoundsWithCount: true
- pageSizeZero: false
- reasonable: true
- params: pageNum=pageHelperStart;pageSize=pageHelperRows;
- supportMethodsArguments: false
-
- # 接口文档配置
- knife4j:
- # 开启增强配置
- enable: true
- # 开启生产环境屏蔽
- production: false
- # 签权
- basic:
- enable: true
- username: admin
- password: 123456
- # 前端UI的个性化配置
- setting:
- enableVersion: true
- enableOpenApi: false
- enableFooter: false
|