123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330 |
- # 项目相关配置
- ruoyi:
- # 名称
- name: RuoYi
- # 版本
- version: 3.8.8
- # 版权年份
- copyrightYear: 2023
- # 实例演示开关
- demoEnabled: true
- # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
- profile: /c:/files
- # 获取ip地址开关
- addressEnabled: false
- # 验证码类型 math 数字计算 char 字符验证
- captchaType: math
- # 开发环境配置
- server:
- # 服务器的HTTP端口,默认为8080
- port: 8087
- # ssl:
- # key-store: classpath:qc-server.huaxiazhizao.com.jks
- # key-store-type: JKS
- # key-store-password: 35zrlnoe
- servlet:
- # 应用的访问路径
- context-path: /
- tomcat:
- # tomcat的URI编码
- uri-encoding: UTF-8
- # 连接数满后的排队数,默认为100
- accept-count: 1000
- threads:
- # tomcat最大线程数,默认为200
- max: 800
- # Tomcat启动初始化的线程数,默认值10
- min-spare: 100
- # form表单长度 -1表示不限制
- max-http-form-post-size: 10485760 # 10M
- # http 头大小默认8k
- max-http-header-size: 1MB
- # 日志配置
- logging:
- level:
- com.ruoyi: debug
- org.springframework: warn
- config: classpath:logback-spring.xml
- # 用户配置
- user:
- password:
- # 密码最大错误次数
- maxRetryCount: 5
- # 密码锁定时间(默认10分钟)
- lockTime: 10
- # Spring配置
- spring:
- application:
- name: sundry
- # 资源信息
- messages:
- # 国际化资源文件路径
- basename: i18n/messages
- profiles:
- active: druid
- web:
- resources:
- static-locations:
- - classpath:/public/
- - classpath:/static/
- - classpath:/resources/
- - classpath:/META-INF/resources/
- - file:${ruoyi.profile}/public/
- # 文件上传
- servlet:
- multipart:
- # 单个文件大小
- max-file-size: 10MB
- # 设置总上传的文件大小
- max-request-size: 20MB
- # 服务模块
- devtools:
- restart:
- # 热部署开关
- enabled: true
- # redis 配置
- redis:
- # 地址
- host: localhost
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 0
- # 密码
- password:
- # 连接超时时间
- timeout: 10s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 0
- # 连接池中的最大空闲连接
- max-idle: 8
- # 连接池的最大数据库连接数
- max-active: 8
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- redisson:
- config: |
- singleServerConfig:
- idleConnectionTimeout: 10000
- connectTimeout: 10000
- timeout: 3000
- retryAttempts: 3
- retryInterval: 1500
- address: redis://${spring.redis.host}:${spring.redis.port}
- password: ${spring.redis.password}
- clientName: null
- keepAlive: false
- tcpNoDelay: false
- # 单个连接最大订阅数量
- subscriptionsPerConnection: 5
- # 发布和订阅连接的最小空闲连接数
- subscriptionConnectionMinimumIdleSize: 1
- # 发布和订阅连接池大小
- subscriptionConnectionPoolSize: 50
- # 最小空闲连接数
- connectionMinimumIdleSize: 32
- # 连接池大小
- connectionPoolSize: 64
- # 数据库编号
- database: ${spring.redis.database}
- # DNS监测时间间隔,单位:毫秒
- dnsMonitoringInterval: 5000
- threads: 8
- nettyThreads: 8
- codec: !<org.redisson.client.codec.StringCodec> {}
- transportMode: "NIO"
- # token配置
- token:
- # 令牌自定义标识
- header: Authorization
- # 令牌密钥
- secret: abcdefghijklmnopqrstuvwxyz
- # 令牌有效期(默认30分钟)
- expireTime: 10080
- # MyBatis配置
- mybatis:
- # 搜索指定包别名
- typeAliasesPackage: com.ruoyi.**.domain,com.huaxia.**.domain,com.huaxia.**.entity,com.huaxia.**.po,com.frm.**.domain
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath*:mapper/**/*Mapper.xml
- # 加载全局的配置文件
- configLocation: classpath:mybatis/mybatis-config.xml
- # MyBatis-Plus配置
- mybatis-plus:
- # 搜索指定包别名
- typeAliasesPackage: com.ruoyi.**.domain,com.huaxia.**.domain,com.huaxia.**.entity,com.huaxia.**.po,com.frm.**.domain
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- mapperLocations: classpath*:mapper/**/*Mapper.xml
- # 加载全局的配置文件
- configLocation: classpath:mybatis/mybatis-config.xml
- #configuration: # configLocation 和 configuration 只能二选一
- # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # org.apache.ibatis.logging.slf4j.Slf4jImpl
- # (全局起作用)配置mybaits自定义类型转换类所在的包
- #typeHandlersPackage: com.hxitsys.framework.config.mybatis.typehandler
- checkConfigLocation: true
- global-config:
- banner: false
- enable-sql-runner: true
- db-config:
- logic-delete-field: deleted # 全局逻辑删除的实体字段名(自3.3.0,配置后可以忽略不配置实体类字段标注@TableLogic private Integer deleted;)
- logic-delete-value: 1 # 逻辑已删除值(默认 1)
- logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
- # PageHelper分页插件
- pagehelper:
- helperDialect: mysql
- supportMethodsArguments: true
- params: count=countSql
- --- ### 文档 ###
- springdoc:
- api-docs:
- enabled: true
- path: /v3/api-docs
- swagger-ui:
- enabled: true
- path: /swagger-ui
- default-flat-param-object: true # 参见 https://doc.xiaominfo.com/docs/faq/v4/knife4j-parameterobject-flat-param 文档
- knife4j: # since v2.0.6, 用以替代 @EnableKnife4j
- enable: true # 是否开启增强属性,默认false
- documents:
- - group: 4.5.0版本 # 所属分组
- name: 接口签名 # 类似于接口中的tag,对于自定义文档的分组
- locations: classpath:md/* # markdown文件路径,可以是一个文件夹(classpath:markdowns/*),也可以是单个文件(classpath:md/sign.md)
- setting:
- language: zh-CN # Ui默认显示语言,目前主要有两种:中文(zh-CN)、英文(en-US)。默认zh-CN
- production: false # 是否开启生产环境保护策略,默认false
- basic:
- enable: true # 对Knife4j提供的资源提供BasicHttp校验,保护文档。默认false
- username: test
- password: 123123
- # 防止XSS攻击
- xss:
- # 过滤开关
- enabled: true
- # 排除链接(多个用逗号分隔)
- excludes: /system/notice
- # 匹配链接
- urlPatterns: /system/*,/monitor/*,/tool/*
- # 自定义属性文件
- # 见 com.cmpt.sns.web.config.SnsProperties
- config:
- security: prod-line-admin/src/main/resources/security.properties
- oss: prod-line-admin/src/main/resources/oss.properties
- sns: prod-line-admin/src/main/resources/sns.properties
- config-center:
- # 静态资源域名
- static-prefix: http://localhost:${server.port}
- ## 接入 XXL-SSO
- #xxl:
- # sso:
- # # server: https://sso-server.huaxiazhizao.com/sso
- # server: http://localhost:8086/sso
- # logout:
- # path: /logout
- # excluded:
- # paths:
- ## RocketMQ 集群
- #rocketmq:
- ## name-server: 117.28.241.198:9876 #192.168.0.234:9876
- ## name-server: 192.168.0.234:9876 #192.168.0.234:9876
- # producer:
- # group: ${spring.application.name}-ProducerGroup
- # send-message-timeout: 10000 # 消息发送超时时长,默认3s
- # retry-times-when-send-failed: 3 # 同步发送消息失败重试次数,默认2
- # retry-times-when-send-async-failed: 3 # 异步发送消息失败重试次数,默认2
- # max-message-size: 1048576 # 消息最大长度,默认1024 * 1024 * 4(默认4M)
- # compress-message-body-threshold: 4096 # 压缩消息阈值,默认4k(1024 * 4)
- # retry-next-server: false # 是否在内部发送失败时重试另一个broker,默认false
- # #access-key: rocketmq2
- # #secret-key: 12345678
- # consumer:
- # group: ${spring.application.name}-ConsumerGroup
- #
- #
- # ## 以下搞点自定义配置用于 AbstractRocketConsumer 的 DefaultMQPushConsumer
- # #消费者线程数量
- # consumeThreadMin: 5
- # consumeThreadMax: 32
- # #设置一次消费消息的条数,默认为1条
- # consumeMessageBatchMaxSize: 1
- #MQTT配置
- mqtt :
- # MQTT服务端地址 多个使用逗号分割如:tcp://192.168.0.234:1883,tcp://192.168.0.235:1883
- url: tcp://117.72.113.54:1883
- #用户名
- username: admin
- password: eW8kAH3WMZ5B5TTD
- #客户端id 不能重复
- client:
- id: ${spring.application.name}
- #MQTT 默认订阅主题
- topic:
- default: TestTopic
- jfrm:
- swagger:
- title: 华阳集团企业资源规划
- description: 订单+采购+仓储+生产
- version: ${ruoyi.version}
- url: unspecified
- email: noname@qq.com
- license: MIT
- license-url: unspecified
- --- ### 自定义 ###
- jfrm:
- info:
- version: 1.0.1-snapshot
- base-package: com.huaxia
- mapper-package: ${jfrm.info.base-package}, com.ruoyi.**.mapper,com.cmpt.**.mapper,com.huaxia.**.mapper,com.frm.**.mapper # 该包目录将用于 MyBatis Mapper 扫描
- mybatis-plus:
- pagination:
- enabled: true # 开启分页
- optimistic:
- enabled: true # 开启乐观锁
- web:
- member-api:
- prefix: /member-api
- controller: com.**.controller.member.**
- admin-api:
- prefix: /admin-api
- controller: com.**.controller.admin.**
- admin-ui:
- url: http://localhost:${server.port} # Admin 管理后台 UI 的地址
- filter:
- cors: true # 开启全局跨域过滤器
- serial-write-timestamp: false # 日期是否序列化为时间戳
- mbr-security:
- paramSignRequired: false # 是否签名参数
- headerTenantRequired: false # 是否需要多租户
- setting:
- securityStrategy: token
- tokenHeaderKey: Authorization
- tokenValPrefix: 'Bearer '
- loginProcessor: filter
- useCaptcha: false
- captchaSize: 5
- captchaDuration: 5
- duration: 30
- encryptPassword: true
- privateKey: MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBANHtrETGQh9E2ZeFv2DqS3IOJGL35y8e6nzJnrl2lkVkY5niZTpT/RGrgDv5tBHJbbsYu0lw7vbBmpIS2+D7hKGhpqnmXcd91HYajsbvvxbnuX1i9mbCclce2AzypLfWbi4hSIiFXKgdy6OX9+IX+bJ5UBkLkyYVHGdWfbWvLutLAgMBAAECgYBi2QHzxFLgPGAky9KIhOoPg384prhR5MHPDnTRqXgqppGLpSG7LE8OYe3Yz8QtV+Z2YbfWZfnvcMwimgS01Fnnk0T6xCjz2IJRjTzISElWyiGslFWm0qjFrVEydDucM0kw3jBmw4roeVGGKkmbR0C2QjB4czdERqihZZxOgu3+kQJBAOyCViBiJcOhzzEzM9SuHcsYoi5Mwia93fzoroojNPWShmIx/PSvE3LxYzZszFBpy3uzTN1hMslu3fQg9s1MKdkCQQDjOo9HKLxnHTT0tB6h1aySJqt8+8dD9rQ7J8HYrD9idcPXVZ5WyM6x0i8YGj2u+TR1KDx/9fnZlAjwOy4JKYPDAkAVonqUbcX8llGos4FbRC4vhOpZB+Z+usGSwAovUrcme6fVVbNJArbpvdEQinVKKdNWVnmCisClkoG1MkrBTuVJAkAlxYA3pe/bfCFnY+GLqUcsbD0pY3j2NTY0dyFj8Q4AQe8yBktxxaOGL5gge4wxX792kh+sbakAn/j0ZgH7B+mdAkAIN2hkHJPpgc6L0111TdtdH/lvgxmJ9QgOd1wb5pHL2mtUUvXK3SkOF08agg3kv8I9qmDOcjs7A6zEjAV7Dijn
- staticCustomLocations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
|