#端口号
server:
port: 8078
spring:
#数据源配置
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/yeb?useUnicode=true&characterEncoding=UTF-8&useSSL=false
username: root
password: 123456
# 连接池配置
hikari:
#连接池明
pool-name: DateHikariCP
# 最小连接数
minimum-idle: 5
# 空闲时间连接存活的最大时间
idle-timeout: 180000
# 最大连接数10
maximum-pool-size: 10
# 从连接池返回的连接自动提交
auto-commit: true
# 0为永久时间,此处为30分钟
max-lifetime: 1800000
# 连接超时时间30秒
connection-timeout: 30000
# 测试连接是否可用的查询语句
connection-init-sql: SELECT 1
#mybatis-plus配置
mybatis-plus:
#配置Mapper映射文件
mapper-locations: classpath:/mapper/*Mapper.xml
# 配置Mybatis数据返回类型别名(默认别名为类名)
type-aliases-package: com.yunnuo.server.pojo
configuration:
# 自动驼峰命名
map-underscore-to-camel-case: false
#配置控制台打印日志Debug(方法接口所在的包)
logging:
level:
com.hzx.server.mapper: debug
Application.yml配置
最新推荐文章于 2024-02-28 15:09:05 发布