SpringBoot 环境搭建——application.yml

SpringBoot 环境搭建——application.yml

  • 配置信息

配置信息

spring:
  datasource:
    druid:
      driver-class-name: com.mysql.cj.jdbc.Driver
      url: jdbc:mysql://localhost:3306/dbName?serverTimezone=UTC
      username: root
      password: root@123
      max-pool-prepared-statement-per-connection-size: 30
      min-evictable-idle-time-millis: 30000
      initial-size: 1
      max-active: 50
      validation-query: select 'x'
      min-idle: 10
      max-wait: 60000
      validation-query-timeout: 5
      test-while-idle: true
      test-on-borrow: false
      test-on-return: false
      filters: stat,wall,log4j2
      stat-view-servlet:
        enabled: true
        reset-enable: true
        login-username: demo
        login-password: demo

你可能感兴趣的:(SpringBoot,环境搭建)