正常我们在配置springboot的application.yml 配置文件时:
spring:
profiles:
active: dev
thymeleaf:
mode: HTML
cache: false
mvc:
view:
prefix: /templates
favicon:
enabled: false
datasource:
url: jdbc:mysql://localhost:3308/phouse?characterEncoding=utf8&useSSL=true
username: root
password: root
driver-class-name: com.mysql.jdbc.Driver
password这个节点如果配置成纯数字。即使我们命令行能够正常登录,但是通过此配置文件连接数据库时,就会报Access denied for user 'root'@'localhost'