会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
优优鱼
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
2020年12月18日
mysql todays()函数的用法
摘要: ` 1、利用to_days函数查询今天的数据: select * from 表名 where to_days(时间字段名) = to_days(now()); to_days函数:返回从0000年(公元1年)至当前日期的总天数。 2、昨天 SELECT * FROM 表名 WHERE TO_DAYS
阅读全文
posted @ 2020-12-18 14:11 优优鱼
阅读(6599)
评论(0)
推荐(2)
2020年12月9日
java利用hutool中的HttpUtil工具类进行一个简单的爬虫
摘要: ` package com.rrk.user.center.controller; import cn.hutool.http.HttpUtil; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.se
阅读全文
posted @ 2020-12-09 10:43 优优鱼
阅读(1609)
评论(0)
推荐(0)
2020年12月5日
mysql给数据库字段赋值为随机数
摘要: UPDATE 表名 set 修改的字段 = round(rand() * 1000) + 1 where 条件 随机查询 10条数据 SELECT * FROM 表名 ORDER BY RAND() LIMIT 10
阅读全文
posted @ 2020-12-05 16:57 优优鱼
阅读(1604)
评论(0)
推荐(0)
2020年11月27日
利用Hutool工具类下载Excel
摘要: ` <!-- Hutool引入maven依赖--> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.3.5</version> </dependency> <depend
阅读全文
posted @ 2020-11-27 16:11 优优鱼
阅读(4208)
评论(0)
推荐(1)
利用lList集合中的subList进行分页
摘要: ` public Page<TbUserInfo> getUserInfoList(Integer page, Integer pageSize) { //mybatisPlus中的page对象 Page<TbUserInfo> userInfoPage= new Page<>(); //先查询到所
阅读全文
posted @ 2020-11-27 14:16 优优鱼
阅读(252)
评论(0)
推荐(0)
redis中分页缓存数据
摘要: ` @Autowired StringRedisTemplate stringRedisTemplate; @ApiOperation(value = "查询操作日志" ) @GetMapping("/querySysLogList") public R querySysLogList( @ApiP
阅读全文
posted @ 2020-11-27 12:01 优优鱼
阅读(2173)
评论(0)
推荐(0)
2020年11月24日
ios账号第三方登录,判断是否是Ios账号
摘要: import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.rrk.common.center.bin.exception.RrkException; import com.rrk
阅读全文
posted @ 2020-11-24 13:36 优优鱼
阅读(159)
评论(0)
推荐(0)
通过ip查询ip地址
摘要: ` /** * 获取IP地址 * <p> * 使用Nginx等反向代理软件, 则不能通过request.getRemoteAddr()获取IP地址 * 如果使用了多级反向代理的话,X-Forwarded-For的值并不止一个,而是一串IP地址,X-Forwarded-For中第一个非unknown的
阅读全文
posted @ 2020-11-24 11:48 优优鱼
阅读(345)
评论(0)
推荐(0)
上一页
1
2
公告