1. 引入依赖
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.4.1</version>
</dependency>
2. application.yml 配置
具体写入配置
mybatis-plus:
mapper-locations: classpath:com/suke/srb/core/mapper/xml/*.xml
简写配置
mybatis-plus:
mapper-locations: classpath:/mapper/*.xml