| | |
| | | # 日志配置 |
| | | logging: |
| | | level: |
| | | org.quartz: DEBUG |
| | | com.ruoyi: warn |
| | | org.springframework: warn |
| | | |
| | |
| | | druid: |
| | | # 主库数据源 |
| | | master: |
| | | url: jdbc:mysql://localhost:3306/product-inventory-management?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://localhost:3306/product-inventory-management-hckx?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: root |
| | | password: 123456 |
| | | # 从库数据源 |
| | |
| | | redis: |
| | | # 地址 |
| | | host: 127.0.0.1 |
| | | # host: 172.17.0.1 |
| | | # host: 172.17.0.1 |
| | | # 端口,默认为6379 |
| | | port: 6379 |
| | | # 数据库索引 |
| | | database: 0 |
| | | # 密码 |
| | | # password: root2022! |
| | | # password: root2022! |
| | | password: |
| | | |
| | | # 连接超时时间 |
| | |
| | | max-active: 8 |
| | | # #连接池最大阻塞等待时间(使用负值表示没有限制) |
| | | max-wait: -1ms |
| | | # Quartz定时任务配置(新增部分) |
| | | quartz: |
| | | job-store-type: jdbc # 使用数据库存储 |
| | | jdbc: |
| | | initialize-schema: never # 首次运行时自动创建表结构,成功后改为never |
| | | schema: classpath:org/quartz/impl/jdbcjobstore/tables_mysql_innodb.sql # MySQL表结构脚本 |
| | | properties: |
| | | org: |
| | | quartz: |
| | | scheduler: |
| | | instanceName: RuoYiScheduler |
| | | instanceId: AUTO |
| | | jobStore: |
| | | class: org.quartz.impl.jdbcjobstore.JobStoreTX |
| | | driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate # MySQL适配 |
| | | tablePrefix: qrtz_ # 表名前缀,与脚本一致 |
| | | isClustered: false # 单节点模式(集群需改为true) |
| | | clusterCheckinInterval: 10000 |
| | | txIsolationLevelSerializable: true |
| | | threadPool: |
| | | class: org.quartz.simpl.SimpleThreadPool |
| | | threadCount: 10 # 线程池大小 |
| | | threadPriority: 5 |
| | | makeThreadsDaemons: true |
| | | updateCheck: false # 关闭版本检查 |
| | | |
| | | # token配置 |
| | | token: |
| | |
| | | secret: abcdefghijklmnopqrstuvwxyz |
| | | # 令牌有效期(默认30分钟) |
| | | expireTime: 450 |
| | | |
| | | |
| | | # MyBatis Plus配置 |
| | | mybatis-plus: |
| | | # 搜索指定包别名 根据自己的项目来 |
| | |
| | | enable-sql-runner: true |
| | | db-config: |
| | | id-type: auto |
| | | |
| | | |
| | | # PageHelper分页插件 |
| | | pagehelper: |
| | | helperDialect: mysql |
| | |
| | | # Swagger配置 |
| | | swagger: |
| | | # 是否开启swagger |
| | | enabled: false |
| | | enabled: true |
| | | # 请求前缀 |
| | | pathMapping: /dev-api |
| | | |
| | |
| | | excludes: /system/notice |
| | | # 匹配链接 |
| | | urlPatterns: /system/*,/monitor/*,/tool/* |
| | | |
| | | |
| | | # 代码生成 |
| | | gen: |
| | | # 作者 |