spring:
datasource:
username: root
password: 12345678
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/springBoot02?characterEncoding=utf-8
#配置mybatis
mybatis:
configuration:
map-underscore-to-camel-case: true #驼峰转下划线(java中属性字段和数据库字段映射)
#配置mybatis-plus的SQL日志打印
mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #把日志打印到控制台
yaml配置Mybatis
最新推荐文章于 2025-03-24 20:23:18 发布