springboot+mybatis-plus基础配置(超级简单版)

#服务器端口
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

 

posted @ 2020-10-12 10:54  天玺  阅读(395)  评论(0)    收藏  举报