10/23

ztn195 / 2024-11-13 / 原文

你的配置文件看起来像是 Spring Boot 的 application.properties 格式。以下是一个完整的示例,包括必要的注释:

properties

数据库驱动类

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver

数据库连接 URL,包含数据库名称

spring.datasource.url=jdbc:mysql://localhost:3306/plan

数据库用户名

spring.datasource.username=root

数据库密码

spring.datasource.password=123456789

MyBatis 日志实现

mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl

开启下划线转驼峰命名

mybatis.configuration.map-underscore-to-camel-case=true