启动报错:java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO)
yml 文件
spring:
profiles:
active: dev
datasource:
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://127.0.0.1:3306/test
data-username: root
data-password: 123456
yml 文件
spring:
profiles:
active: dev
datasource:
driver-class-name: org.gjt.mm.mysql.Driver
url: jdbc:mysql://127.0.0.1:3306/test
data-username: root
data-password: 123456
2017-05-09
最新回答 / 動如參與商
没有配置maven,可以用这个方法:idea里面,找到Maven Project→Lifecycle→install,双击之然后会在target目录生成jar包然后就去那个target目录执行 java -jar jar文件名
2017-05-08
已采纳回答 / BoJackM
<...code...>上面这段pom改成下面试下,(https://stackoverflow.com/questions/22380119/why-my-spring-boot-app-always-shutdown)<...code...>
2017-05-07
要在pom.xml里面配置如下(因为字数限制,简写了)
格式:groupId:artifactId
org.springframework.boot:spring-boot-starter-jdbc
org.springframework.boot:spring-boot-starter-data-jpa
mysql:mysql-connector-java
格式:groupId:artifactId
org.springframework.boot:spring-boot-starter-jdbc
org.springframework.boot:spring-boot-starter-data-jpa
mysql:mysql-connector-java
2017-05-04