| | |
| | | # 项目相关配置 |
| | | ruoyi: |
| | | # 名称 |
| | | name: RuoYi |
| | | name: RuoYi-Vue-Plus |
| | | # 版本 |
| | | version: 3.2.1 |
| | | version: ${ruoyi-vue-plus.version} |
| | | # 版权年份 |
| | | copyrightYear: 2020 |
| | | copyrightYear: 2021 |
| | | # 实例演示开关 |
| | | demoEnabled: true |
| | | # 文件路径,使用jvm系统变量,兼容windows和linux; |
| | | profile: ${user.dir}/ruoyi/uploadPath |
| | | # 获取ip地址开关 |
| | | addressEnabled: false |
| | | |
| | | captcha: |
| | | # 验证码类型 math 数组计算 char 字符验证 |
| | | captchaType: math |
| | | # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰 |
| | | captchaCategory: circle |
| | | # 数字验证码位数 |
| | | captchaNumberLength: 1 |
| | | # 字符验证码长度 |
| | | captchaCharLength: 4 |
| | | |
| | | # 开发环境配置 |
| | | server: |
| | |
| | | servlet: |
| | | # 应用的访问路径 |
| | | context-path: / |
| | | # undertow 配置 |
| | | undertow: |
| | | # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的 |
| | | max-http-post-size: -1 |
| | |
| | | worker-threads: 256 |
| | | # 是否分配的直接内存 |
| | | direct-buffers: true |
| | | # # tomcat 配置 |
| | | # tomcat: |
| | | # # tomcat的URI编码 |
| | | # uri-encoding: UTF-8 |
| | | # # tomcat最大线程数,默认为200 |
| | | # max-threads: 500 |
| | | # # Tomcat启动初始化的线程数,默认值25 |
| | | # min-spare-threads: 30 |
| | | |
| | | # 日志配置 |
| | | logging: |
| | | level: |
| | | com.ruoyi: @logging.level@ |
| | | org.springframework: warn |
| | | config: classpath:logback.xml |
| | | |
| | | # Spring配置 |
| | | spring: |
| | |
| | | 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: |
| | |
| | | # MyBatis配置 |
| | | # https://baomidou.com/config/ |
| | | mybatis-plus: |
| | | mapperPackage: com.ruoyi.**.mapper |
| | | # 对应的 XML 文件位置 |
| | | mapper-locations: classpath*:mapper/**/*Mapper.xml |
| | | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| | | # 实体扫描,多个package用逗号或者分号分隔 |
| | | typeAliasesPackage: com.ruoyi.**.domain |
| | | # 针对 typeAliasesPackage,如果配置了该属性,则仅仅会扫描路径下以该类作为父类的域对象 |
| | |
| | | # 全局的entity的逻辑删除字段属性名 |
| | | logicDeleteField: null |
| | | # 逻辑已删除值 |
| | | logicDeleteValue: 1 |
| | | logicDeleteValue: 2 |
| | | # 逻辑未删除值 |
| | | logicNotDeleteValue: 0 |
| | | # 字段验证策略之 insert,在 insert 的时候的字段验证策略 |
| | |
| | | # NOT_EMPTY 非空判断(只对字符串类型字段,其他类型字段依然为非NULL判断) |
| | | # DEFAULT 默认的,一般只用于注解里 |
| | | # NEVER 不加入 SQL |
| | | insertStrategy: NOT_NULL |
| | | insertStrategy: NOT_EMPTY |
| | | # 字段验证策略之 update,在 update 的时候的字段验证策略 |
| | | updateStrategy: NOT_NULL |
| | | updateStrategy: NOT_EMPTY |
| | | # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件 |
| | | selectStrategy: NOT_NULL |
| | | selectStrategy: NOT_EMPTY |
| | | |
| | | # PageHelper分页插件 |
| | | pagehelper: |
| | |
| | | enabled: true |
| | | # 请求前缀 |
| | | pathMapping: /dev-api |
| | | # 标题 |
| | | title: '标题:RuoYi-Vue-Plus后台管理系统_接口文档' |
| | | # 描述 |
| | | description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...' |
| | | # 版本 |
| | | version: '版本号: ${ruoyi-vue-plus.version}' |
| | | |
| | | # 防止XSS攻击 |
| | | xss: |
| | |
| | | excludes: /system/notice/* |
| | | # 匹配链接 |
| | | urlPatterns: /system/*,/monitor/*,/tool/* |
| | | |
| | | threadPoolConfig: |
| | | # 是否开启线程池 |
| | | enabled: false |
| | | # 核心线程池大小 |
| | | corePoolSize: 8 |
| | | # 最大可创建的线程数 |
| | | maxPoolSize: 16 |
| | | # 队列最大长度 |
| | | queueCapacity: 128 |
| | | # 线程池维护线程所允许的空闲时间 |
| | | keepAliveSeconds: 300 |
| | | # 线程池对拒绝任务(无线程可用)的处理策略 |
| | | # CallerRunsPolicy 等待 |
| | | # DiscardOldestPolicy 放弃最旧的 |
| | | # DiscardPolicy 丢弃 |
| | | # AbortPolicy 中止 |
| | | rejectedExecutionHandler: CallerRunsPolicy |
| | | |
| | | feign: |
| | | package: com.ruoyi.**.feign |
| | | # 开启压缩 |
| | | compression: |
| | | request: |
| | | enabled: true |
| | | response: |
| | | enabled: true |
| | | okhttp: |
| | | enabled: true |
| | | hystrix: |
| | | enabled: true |