idea启动sql连接远程数据库时发生错误:
发现是sql连接配置问题:
spring:
datasource:
data-username: root
data-password: 123456
url: jdbc:mysql://localhost:3307/jdbc?useSSL=false
driver-class-name: com.mysql.jdbc.Driver
改成:
spring:
datasource:
username: root
password: 123456
url: jdbc:mysql://locaohost:3307/jdbc?useSSL=false
driver-class-name: com.mysql.jdbc.Driver
坑点在于这是idea自己提示的: