| | |
| | | secret: abcdefghijklmnopqrstuvwxyz |
| | | # 令牌有效期(默认30分钟) |
| | | expireTime: 30 |
| | | |
| | | # MyBatis配置 |
| | | # 原有 MyBatis 配置保持不变 |
| | | mybatis: |
| | | # 搜索指定包别名 |
| | | typeAliasesPackage: com.ruoyi.**.domain |
| | | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| | | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| | | # 加载全局的配置文件 |
| | | configLocation: classpath:mybatis/mybatis-config.xml |
| | | |
| | | # 新增 MyBatis-Plus 配置 |
| | | mybatis-plus: |
| | | # 可以指向新的目录,避免与原有XML冲突 |
| | | mapper-locations: classpath*:mapper/**/*Mapper.xml |
| | | type-aliases-package: com.ruoyi.**.domain |
| | | global-config: |
| | | db-config: |
| | | id-type: AUTO |
| | | logic-delete-value: 2 # 若依默认逻辑删除值是2 |
| | | logic-not-delete-value: 0 |
| | | # 字段策略:0:忽略判断,1:非NULL判断,2:非空判断 |
| | | insert-strategy: not_null |
| | | update-strategy: not_null |
| | | configuration: |
| | | # 保持与原有配置一致 |
| | | map-underscore-to-camel-case: true |
| | | # 开启SQL日志 |
| | | log-impl: org.apache.ibatis.logging.stdout.StdOutImpl |
| | | # PageHelper分页插件 |
| | | pagehelper: |
| | | helperDialect: mysql |
| | |
| | | # 排除链接(多个用逗号分隔) |
| | | excludes: /system/notice |
| | | # 匹配链接 |
| | | urlPatterns: /system/*,/monitor/*,/tool/* |
| | | urlPatterns: /system/*,/monitor/*,/tool/* |