springboot简易配置

server:
  port: 8089
  servlet:
    encoding:
      charset: UTF-8
  tomcat:
    uri-encoding: UTF-8
spring:
  datasource:
    type: com.zaxxer.hikari.HikariDataSource
    jdbc-url: jdbc:mysql://localhost:3306/mydb_base?serverTimezone=UTC&useUnicode=true&characterEncoding=utf-8&useSSL=true
    driver-class-name: com.mysql.cj.jdbc.Driver
    username: **
    password: **
  thymeleaf:
    prefix: classpath:/templates/
    #content-type: text/html
    suffix: .html
    templateMode: HTML5#LEGACYHTML5
    characterEncoding: UTF-8
    cache: false
  devtools:
    restart:
      enabled: true
      exclude: /**
  redis:
    database: 0
    host: 127.0.0.1
    port: 6379
    password: **
    lettuce:
      pool:
        max-active: 20
        max-wait: -1
        max-idle: 10
        min-idle: 0
      # 哨兵设置
      #sentinel:
      #master:
      #nodes:
    timeout: 3000
  banner:
    charset: UTF-8
    location: banner.txt
  security:
    user:
      name: user
      password: password
logging:
  root:
    level: debug
  charset:
    console: UTF-8
mybatis:
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl

 

posted @ 2023-06-20 17:04  此时不卷何时卷  阅读(8)  评论(0编辑  收藏  举报