mybatisplus依赖:
<!--mybatisplus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.4.1</version> </dependency>
<指定的连接池依赖>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.16</version>
</dependency>
且要在配置的文件里添加 要么...yml 要么 .....propties
配置:
spring: datasource: #连接池的选择 type: com.alibaba.druid.pool.DruidDataSource
mybatisplus里面的相关指令:
eq == equal 等于
ne == not equal 不等于
gt == greater than 大于
lt == less than 小于
ge == greater than or equal 大于等于
le == less than or equal 小于等于
in == in 包含(数组)
isNull == 等于null
isNotNull ==