检查yml或者properties文件中的数据库链接url是否出错
1.yml文件配置
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/examnation?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
username: root
password: root
2.properties文件配置
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://localhost:3306/examnation?useUnicode=true&characterEncoding=utf-8&serverTimezone=UTC
spring.datasource.username=root
spring.datasource.password=root