Mybatis Springbootフィールドでのアルパカ問題のマッピング
1786 ワード
マッピングに失敗した場合、idなどのデータベースフィールド名と同じデータしか調べられません.他のデータはnullです.
これを開ければいい
spring:
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://127.0.0.1:3306/mall?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
mybatis:
configuration:
map-underscore-to-camel-case: true
これを開ければいい
mybatis:
configuration:
map-underscore-to-camel-case: true