#
事件回歸
實體類定義字段中是帶下划線的
sql中字段也是帶下划線的
mybatiplus默認是打開自動轉換下划線 所以導致字段為null
@TableField(value="字段名") 這個注解並不生效
mybatis-plus:
#mapper掃描
mapper-locations: classpath*:mapper/**/*.xml
configuration:
# 關閉自動駝峰轉換
map-underscore-to-camel-case: false
# 打印sql
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl