yaml中这样的错误你犯过没有?
Spring:
Application:
name: T3
Datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/tlias?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false
username: root
password: 1234567
#type: com.alibaba.druid.pool.DruidDataSource
Mybatis:
mapper-locations: classpath*:mapper/*.xml
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
map-underscore-to-camel-case: true
主要修改点:
将SpringBoot改为spring(小写)
将Application改为application
将DataSource改为datasource
将Mybatis改为mybatis
修正所有缩进,确保层级关系正确
这些属性名必须使用小写字符格式,这是Spring Boot的标准配置格式。
浙公网安备 33010602011771号