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

69 lines
2.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
# port: 8099
tomcat:
uri-encoding: UTF-8
max-swallow-size: -1 # tomcat默认大小2M超过2M的文件不会被捕获需要调整此处大小为100MB或者-1即可
spring:
jackson:
time-zone: Asia/Shanghai
date-format: yyyy-MM-dd HH:mm:ss
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 # 文件最大请求限制,用于批量上传
# location: /Users/wuzhongjie/Desktop/vlog-1.0.0/vlogdata
nacos:
counts: 10
# 整合mybatis
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
type-aliases-package: com.imooc.pojo,com.imooc.vo,com.imooc.mo,com.imooc.bo # 所有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
com.imooc.mapper: DEBUG
org.apache.ibatis: DEBUG
# MinIO 配置
minio:
endpoint: http://43.143.227.203:29000 # MinIO服务地址
fileHost: http://43.143.227.203:29000 # 文件地址host
bucketName: bucket # 存储桶bucket名称
accessKey: 5Zo50S9AHlszNjIqnHI1 # 用户名
secretKey: 6QOoW0QL7WR2tYId5b3WcajJVmNnnMaFl8CGjKsD # 密码
imgSize: 1024 # 图片大小限制单位m
fileSize: 1024 # 文件大小限制单位m