Mybatis-Plus的引用

一、依赖

<dependency>
    <groupId>com.baomidou</groupId>
    <artifactId>mybatis-plus-boot-starter</artifactId>
    <version>3.0.6</version>
</dependency>
<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
</dependency>
<dependency>
    <groupId>p6spy</groupId>
    <artifactId>p6spy</artifactId>
    <version>3.8.1</version>
</dependency>

二、配置

mybatis-plus:
  global-config:
    db-config:
      logic-delete-value: 1
      logic-not-delete-value: 0
  mapper-locations:
    -com/mybatis/mapper/*
  configuration:
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
posted @ 2020-05-13 20:33  Water540  阅读(1035)  评论(0编辑  收藏  举报