quartz指定时间点触发
发表于|更新于
|浏览量:
国家用人,当以德为本,才艺为末。——康熙
之前写过一篇Quartz的博客
今天做一点补充
如果我们需要指定时间点触发任务,则可以使用
1 | // 指定时间点触发 |
这样去构建
这样,我们的任务就会在指定的时间点触发
相关推荐
2024-04-12
mybatis-plus使用oceanbase-oracle模式
不用劳力而获得的东西,只有“贫困”。——莎士比亚 首先引入依赖 1234567891011<dependency> <groupId>com.oceanbase</groupId> <artifactId>oceanbase-client</artifactId> <version>最新版本</version> </dependency> <!-- mybatis-plus-boot-starter --> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>最新版本</version> </dependency> 然后配置连接 1spring.datasource.url=jdbc:ocean...
2022-05-19
sqlite读取文件初始库表
一旦发现英雄也会落井,投石的人会格外勇敢,人群会格外拥挤。——《芳华》 目录结构: GAV 12345678910111213141516171819<dependency> <groupId>com.ejlchina</groupId> <artifactId>bean-searcher-boot-starter</artifactId> <version>3.6.0</version></dependency><dependency> <groupId>org.xerial</groupId> <artifactId>sqlite-jdbc</artifactId> <version>3.36.0.3</version></dependency><dependency> <groupId>org.projectlom...
2022-09-16
flexmark-java
不能用温情征服对方的人,用殴打也征服不了对方——契诃夫 分享一个markdown解析框架:flexmark-java https://github.com/vsch/flexmark-java 使用: 12345<dependency> <groupId>com.vladsch.flexmark</groupId> <artifactId>flexmark-all</artifactId> <version>0.64.0</version></dependency> demo: 1234567891011121314151617181920212223242526package com.vladsch.flexmark.samples;import com.vladsch.flexmark.util.ast.Node;import com.vladsch.flexmark.html.HtmlRenderer;import com.vladsch.flexmark...
2023-08-02
对接deepl翻译
富而不清白,不如贫而有名誉——弥尔顿 api文档如下,需要注意的是必须要绑定支付方式才能显示authKey: https://www.deepl.com/docs-api 代码如下: 12345678910111213141516171819202122232425262728293031import com.dtflys.forest.Forest;import lombok.val;import org.dromara.hutool.core.text.StrUtil;import org.dromara.streamquery.stream.core.collection.Lists;import org.dromara.streamquery.stream.core.stream.Steam;import java.util.List;import java.util.Objects;public class DeeplUtil { private static final DeeplProperties properties = SpringCont...
2024-03-27
stream-query开源合规
不好的书也像不好的朋友一样,可能把你戕害。——菲尔丁 首先是检查header的github action的ci 123456789101112131415161718192021222324252627282930313233343536373839404142# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file# to you under the Apache License, Version 2.0 (the# "License"); you may not use this file except in compliance# with...
2023-01-23
mybatis SQL类
对于不屈不挠的人来说,没有。——俾斯麦 分享一个mybatis在代码里编写sql的方法 官方文档:https://mybatis.org/mybatis-3/zh/statement-builders.html SQL 语句构建器问题Java 程序员面对的最痛苦的事情之一就是在 Java 代码中嵌入 SQL 语句。这通常是因为需要动态生成 SQL 语句,不然我们可以将它们放到外部文件或者存储过程中。如你所见,MyBatis 在 XML 映射中具备强大的 SQL 动态生成能力。但有时,我们还是需要在 Java 代码里构建 SQL 语句。此时,MyBatis 有另外一个特性可以帮到你,让你从处理典型问题中解放出来,比如加号、引号、换行、格式化问题、嵌入条件的逗号管理及 AND 连接。确实,在 Java 代码中动态生成 SQL 代码真的就是一场噩梦。例如: 1234567891011String sql = "SELECT P.ID, P.USERNAME, P.PASSWORD, P.FULL_NAME, ""P.LAST_NAME,P.CREAT...

阿超
我的名字叫阿超 年龄25岁 家在北京市 职业是软件开发 每天最晚也会在八点前回家 不抽烟 酒浅尝辄止 晚上十二点上床 保证睡足八个小时 睡前写一篇博客 再做二十分钟俯卧撑暖身 然后再睡觉 基本能熟睡到天亮 像婴儿一样不留下任何疲劳和压力 就这样迎来第二天的早晨 健康检查结果也显示我很正常 我想说明我是一个不论何时都追求内心平稳的人 不拘泥于胜负 不纠结于烦恼 不树立使我夜不能寐的敌人 这就是我在这社会的生活态度
Follow Me公告
This is my Blog