#我的是MySql8.0
spring:
datasource:
driverClassName: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/数据库名字?useSSL=false&characterEncoding=utf-8&useUnicode=true&serverTimezone=Asia/Shanghai
username: root
password: 12345678
server:
port: 8080
mybatis:
typeAliasesPackage: com.xxx.entity
mapperLocations: classpath:mapper/*.xml
# configLocation: classpath:mybatis/mybatis-config.xml
数据库配置yaml文件
最新推荐文章于 2024-06-13 17:25:53 发布