在配置application.yml时出现
expected '<document start>', but found BlockMappingStart in 'reader',
查阅发现原来yml中 几个配置名称前需要加空格
#Mybatis配置
mybatis:
mapper-locations:
classpath*: com/shine/dao/*.xml
#spring配置
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url:jdbc:mysql: //localhost:3306/spring_db
username: root
password: 123456
type: com.alibaba.druid.pool.DruidDataSource
thymeleaf:
cache: false
mode: HTML
logging:
level:
com.shine:debug
server:
port:8081