1、配置模板
server:
port: 8080
spring:
main:
banner-mode: "off"
application:
name: springboot-program-name
datasource:
# 推荐使用HikariCP(因为druid的数据库连接池容易出错)
type: com.zaxxer.hikari.HikariDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/mysql.dbName?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
mybatis:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl # 配置mybatis的日志,指定输出到控制台
map-underscore-to-camel-case: true # 开启驼峰命名