#服务器端口
server:
port: 8000
spring:
redis:
jedis:
pool:
# 连接池中的最大空闲连接
max-active: 200
# 连接池中的最小空闲连接
max-idle: 10
# 连接超时时间(毫秒)
timeout: 1000
# host: 192.168.2.80
#数据库连接
datasource:
username: root
password: root
url: jdbc:mysql://localhost:3306/auth?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=UTC
driver-class-name: com.mysql.cj.jdbc.Driver
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
servlet:
multipart:
# 单个文件最大上传大小
max-file-size: 20MB
# 总上传的数据大小
max-request-size: 100MB
配置sql打印日志
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: /mappers/*Mapper.xml
Original: https://www.cnblogs.com/vains/p/13801463.html
Author: 天玺
Title: springboot+mybatis-plus基础配置(超级简单版)
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/608326/
转载文章受原作者版权保护。转载请注明原作者出处!