问题描述
数据链接yml文件配置密码为0开头的数字
spring:
datasource:
url: jdbc:mysql://localhost:3306/test
username: root
driver-class-name: com.mysql.jdbc.Driver
password: 001213
#整合mybatis
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.example.day16_springboot_mybatis1.bean #配置别名
configuration:
map-underscore-to-camel-case: true #开启驼峰命名法
原因分析:
yml文件对存在数据量类型的问题果以0开头的数字那么就会引起对应的问题
解决方案:
spring:
datasource:
url: jdbc:mysql://localhost:3306/test
username: root
driver-class-name: com.mysql.jdbc.Driver
password: "001213"
为对应的密码加上引号



