会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
剑磨十年
大丈夫之志当如长江 东奔大海 何苦怀念于温柔之乡
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
2021年1月14日
Linux环境下服务自启
摘要: #!/bin/bash #chkconfig:2345 61 61 ###########################使用办法################################# ####1、将此文件放在/etc/rc.d/init.d/下,赋予执行权限##############
阅读全文
posted @ 2021-01-14 14:58 蓝色土耳其
阅读(247)
评论(0)
推荐(0)
2020年11月26日
Spring自带定时器@Scheduled
摘要: 上篇介绍到任务调度框架Quartz,此次介绍下Spring自带定时器@Scheduled 1、使用方法,在需要执行的方法上添加@Scheduled注解 @EnableScheduling @Component public class QuartzService { @Scheduled(cron
阅读全文
posted @ 2020-11-26 21:38 蓝色土耳其
阅读(2588)
评论(0)
推荐(1)
2020年11月25日
Quartz任务调度框架相关方法、参数理解
摘要: Quartz API中的关键接口 Job : Quartz提供的需实现的需调度器执行的任务组件接口,只有唯一接口: void execute(JobExecutionContext var1) throws JobExecutionException; job.class :实现了execute接口
阅读全文
posted @ 2020-11-25 23:00 蓝色土耳其
阅读(370)
评论(0)
推荐(0)
Quartz 实现定时任务
摘要: 以Springboot为例介绍通过Quartz作业调度框架实现定时任务。 1、引用Quartz依赖 <!--引入Quartz--> <dependency> <groupId>org.quartz-scheduler</groupId> <artifactId>quartz</artifactId>
阅读全文
posted @ 2020-11-25 22:53 蓝色土耳其
阅读(1070)
评论(0)
推荐(0)
2020年11月16日
mysql 使用union(all) + order by 导致排序失效
摘要: 1、SQL1如下 SELECT aa.* FROM apas_smoke aa WHERE STATUS = 0 AND aa.area_id = 'd61523dda339441f80008634c6b91f60' AND aa.type = '3' AND to_days( create_tim
阅读全文
posted @ 2020-11-16 18:54 蓝色土耳其
阅读(1576)
评论(0)
推荐(0)
2020年11月5日
mongodb的查询操作
摘要: 1、条件匹配:MatchOperation MatchOperation matchOperation = Aggregation.match(new Criteria().where("area_code").is(areaCode)); 2、分组计数:GroupOperation + count
阅读全文
posted @ 2020-11-05 20:15 蓝色土耳其
阅读(282)
评论(0)
推荐(0)
2020年10月12日
kafka shell命令
摘要: 1、查看主题命令 ./kafka-topics.sh --list --zookeeper bigdata1:2181,bigdata2:2181,bigdata3:2181 2、模拟生产者生产消息 ./kafka-console-producer.sh --broker-list bigdata1
阅读全文
posted @ 2020-10-12 14:41 蓝色土耳其
阅读(174)
评论(0)
推荐(0)
you can't add a second 'create_time' expression specified as 'create_time : Document{{$lte=2020-07-31 00:00:00}}'.<br>Criteria already contains 'create_time : Document{{$gte=2020-07-01 00:00:00}}'
摘要: 背景:系统中需要通过起始时间、结束时间来查询数据1、原写法 if(StringUtil.isNotEmpty(startTime) && StringUtil.isNotEmpty(endTime)){ criteria.and("create_time").gte(startTime); crit
阅读全文
posted @ 2020-10-12 14:36 蓝色土耳其
阅读(1827)
评论(0)
推荐(0)
2020年9月29日
nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block
摘要: 1、修改nginx.conf后,重启时报错 2、错误原因 如果location或if中用到了正则,则不能再转发除ip:port外的路径请求
阅读全文
posted @ 2020-09-29 17:06 蓝色土耳其
阅读(12627)
评论(0)
推荐(0)
Nginx配置中不同请求匹配不同请求
摘要: 一、正则匹配 ~ 为区分大小写匹配 ~* 为不区分大小写匹配 !和!*分别为区分大小写不匹配及不区分大小写不匹配 二、文件及目录匹配 -f和!-f用来判断是否存在文件 -d和!-d用来判断是否存在目录 -e和!-e用来判断是否存在文件或目录 -x和!-x用来判断文件是否可执行 三.rewrite指令
阅读全文
posted @ 2020-09-29 13:59 蓝色土耳其
阅读(1612)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
公告