server:
port: 8081
spring:
# 数据源配置
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/yeb?characterEncoding=utf-8&useSSL=false
username: root
password: root
hikari:
# 连接池名
pool-name: DateHikariCP
# 最小连接数
minimum-idle: 5
# 空闲连接存活最大时间,默认600000(10分钟)
initialization-fail-timeout: 180000
# 最大连接数,默认10
maximum-pool-size: 10
# 从连接池返回的连接的自动提交
auto-commit: true
# 连接最大存活时间,0表示永久存活,默认1800000(30分钟)
max-lifetime: 1800000
# 连接超时时间,默认30000(30秒)
connection-timeout: 30000
# 测试连接是否可用的查询语句
connection-test-query: SELECT 1
#Mybatis-plus配置
mybatis-plus:
# 配置mapper映射文件
mapper-locations: classpath*:/mapper/*Mapper.xml
# 配置mybatis数据返回类型别名(默认别名是类名)
type-aliases-package: com.xxxx.server.pojo
configuration:
# 自动驼峰命名
map-underscore-to-camel-case: false
logging:
level:
com.xxxx.server.mapper: debug
springboot application.yml配置文件(自用)
于 2022-05-22 10:14:02 首次发布