项目启动报错:If you want an embedded database (H2, HSQL or Derby), please put it on the classpath

发布于 2023-12-05 09:36:14

解决方案:

打开application.properties文件配置数据库参数【参考如下】:

spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/test?serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=root



关注公众号,了解更多it技术(it问答网

0 条评论

发布
问题