vlog/book-api/src/main/resources/application.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

2025-03-10 15:40:51 +08:00
server:
# port: 8099
tomcat:
uri-encoding: UTF-8
max-swallow-size: -1 # tomcat默认大小2M超过2M的文件不会被捕获需要调整此处大小为100MB或者-1即可
spring:
application:
name: imooc-red-book-nacos
profiles:
active: dev
nacos:
counts: 10
banner:
location: classpath:banner/banner.txt
servlet:
multipart:
max-file-size: 1024MB # 文件上传大小限制,设置最大值,不能超过该值,否则报错
max-request-size: 1024MB # 文件最大请求限制,用于批量上传
2025-04-03 11:25:24 +08:00
# location: /Users/wuzhongjie/Desktop/vlog-1.0.0/vlogdata
2025-03-10 15:40:51 +08:00
nacos:
counts: 10
# 整合mybatis
mybatis:
type-aliases-package: com.imooc.pojo # 所有pojo类所在的包路径
mapper-locations: classpath:mapper/*.xml # mapper映射文件
# 通用mapper工具的配置
mapper:
mappers: com.imooc.my.mapper.MyMapper # 配置MyMapper包含了一些封装好的CRUD方法
not-empty: false # 在进行数据库操作的时候username != null 是否会追加 username != ''
identity: MYSQL
# 分页插件助手的配置
pagehelper:
helper-dialect: MYSQL
support-methods-arguments: true
# 日志级别
logging:
level:
root: info