【发布时间】:2023-02-05 19:03:05
【问题描述】:
嗨,我正在研究 spring boot,我尝试了很多方法,我一直收到这个错误,但它没有发生,一些代码显示红色,你能帮忙吗enter image description here enter image description here enter image description here
【问题讨论】:
标签: spring spring-boot hibernate
嗨,我正在研究 spring boot,我尝试了很多方法,我一直收到这个错误,但它没有发生,一些代码显示红色,你能帮忙吗enter image description here enter image description here enter image description here
【问题讨论】:
标签: spring spring-boot hibernate
您需要使用用户名、密码和主机配置实体管理器。 hibernate 需要entitymanager 来连接数据库。您可以像这样添加配置
spring.datasource.url=jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8
spring.datasource.password=root
spring.datasource.username=root
【讨论】: