Kamel-Fallkartierung von Mybatis-plus und Mybatis

Bei Verwendung von mybatis-plus ist die Kamelfallzuordnung standardmäßig automatisch aktiviert.

Sie müssen es deaktivieren und das Attribut von „map-underscore-to-camel-case:“ in „false“ ändern.
mybatis-plus:
  configuration:
    #在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射 
      map-underscore-to-camel-case:  false

Aktivieren Sie die Kartierung von Kamelfällen mit mybatis

Sie müssen es aktivieren und das Attribut von „map-underscore-to-camel-case:“ in „true“ ändern.
mybatis:
  configuration:
    #在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射 
      map-underscore-to-camel-case:  true

Wenn Sie es deaktivieren müssen, ändern Sie einfach „true“ in „false“.

Acho que você gosta

Origin blog.csdn.net/weixin_45417754/article/details/126453901
Recomendado
Clasificación