spring: profiles: active: dev # Jackson 日期时间格式配置 jackson: date-format: yyyy-MM-dd HH:mm:ss time-zone: Asia/Shanghai default-property-inclusion: non_null # 文件上传大小限制(内容管理视频上传用) servlet: multipart: max-file-size: 100MB max-request-size: 100MB server: port: 18888 servlet: context-path: /api # ==================== MyBatis Plus 配置 ==================== mybatis-plus: configuration: # 驼峰命名自动转换 map-underscore-to-camel-case: true # 开启 SQL 打印(通过 SLF4J,日志中自动携带 requestId) log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl # mapper.xml 位置 mapper-locations: classpath:mapper/*.xml global-config: db-config: # 逻辑删除字段名 logic-delete-field: deleted # 已删除的值 logic-delete-value: 1 # 未删除的值 logic-not-delete-value: 0 # 主键雪花算法策略 id-type: assign_id # ==================== Token 鉴权配置 ==================== auth: # 不需要 Token 鉴权的接口白名单(支持 Ant 风格路径匹配) # 登录、注册等公开接口在此配置,也可在 Controller 方法上使用 @NoAuth 注解 white-list: - /api/auth/login - /api/auth/register - /api/actuator/** - /api/doc.html - /api/swagger-ui.html - /api/v2/api-docs - /api/swagger-resources/** - /api/webjars/**