依赖jar包

引入包 版本
jdk 1.8
spring boot 2.7.2
mybatis-plus-extension 3.5.2
mybatis-plus 3.5.2
mybatis-plus-boot-starter 3.5.2
spring-boot-starter-web 2.7.2

使用

添加依赖

<dependency>
  <groupId>cn.allbs</groupId>
  <artifactId>allbs-mybatis</artifactId>
  <version>1.1.8</version>
</dependency>
implementation 'cn.allbs:allbs-mybatis:1.1.8'
implementation("cn.allbs:allbs-mybatis:1.1.8")

配置

mybatis-plus:
  mapper-locations: classpath:mapper/*.xml
  global-config:
    banner: false
    db-config:
      id-type: auto
      field-strategy: NOT_EMPTY
      # 逻辑删除配置
      logic-delete-value: 1
      logic-not-delete-value: 0
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl