连接mysql错误java.sql.SQLException: Access denied for user ''@'localhost' (using password: YES)
首先url加入?characterEncoding=utf8
datasource:
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://localhost:3306/dbgirl
user: root
password: root
*可以通过的配置
spring:
profiles:
active: dev
datasource:
url: jdbc:mysql://localhost:3306/demoidea?characterEncoding=utf8
username: root
password: root
jpa:
hibernate:
ddl-auto: create-drop
show-sql: true
欢迎大神指点