12 2020 档案
摘要:` @Configuration @MapperScan({"包名到dao层"}) public class MybatisPlusConfig { /** * MP 自带分页插件 * @return */ @Bean public PaginationInterceptor paginationI
阅读全文
摘要:` //跳过单元测试 <maven.test.skip>true</maven.test.skip> 或者 命令 mvn clean package -Dmaven.test.skip=true //mvn clean 清除jar包 mvn install 构建 mvn install -X 构建
阅读全文
摘要:` <!--虚拟数据依赖--> <dependency> <groupId>com.github.javafaker</groupId> <artifactId>javafaker</artifactId> <version>1.0.2</version> </dependency> // 实体类
阅读全文
摘要:` 1、利用to_days函数查询今天的数据: select * from 表名 where to_days(时间字段名) = to_days(now()); to_days函数:返回从0000年(公元1年)至当前日期的总天数。 2、昨天 SELECT * FROM 表名 WHERE TO_DAYS
阅读全文
摘要:` package com.rrk.user.center.controller; import cn.hutool.http.HttpUtil; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.se
阅读全文
摘要:UPDATE 表名 set 修改的字段 = round(rand() * 1000) + 1 where 条件 随机查询 10条数据 SELECT * FROM 表名 ORDER BY RAND() LIMIT 10
阅读全文

浙公网安备 33010602011771号