springboot + mybatis plus 全局添加查询字段反引号

配置文件添加: 

column-format: "`%s`"
mybatis-plus:
  # 启动时是否检查MyBatis XML文件是否存在
  check-config-location: true
  # MyBatis原生配置
  configuration:
    # 字段名称下划线转驼峰命名
    map-underscore-to-camel-case: true
  global-config:
    db-config:
      # 全局默认主键类型
      id-type: ASSIGN_ID
      # 逻辑已删除值(默认为 1)
      logic-delete-value: 1
      # 逻辑未删除值(默认为 0)
      logic-not-delete-value: 0
      column-format: "`%s`"
    enable-sql-runner: true

 

posted @ 2024-01-15 17:59  民工Bin  阅读(1472)  评论(0)    收藏  举报