cron表达式
发表于|更新于
|浏览量:
表达式
1 | 每隔5秒执行一次:*/5 * * * * ? |
相关推荐
2024-05-27
lombok的@StandardException
但愿每次回忆,对生活都不感到内疚。——郭小川 官方文档: @StandardException 很简单的一个注解,主要是解决自定义异常需要重写一堆构造器 123456import lombok.experimental.StandardException;@StandardExceptionpublic class ExampleException extends Exception {} 就会生成: 12345678910111213141516171819public class ExampleException extends Exception { public ExampleException() { this(null, null); } public ExampleException(String message) { this(message, null); } public ExampleException(Throwable c...
2023-12-17
spring-doc报错Unable to render this definition
心情愉快是肉体和精神的最佳卫生法。——乔治·桑 原因:自己修改了ByteArrayHttpMessageConverter的顺序。。。 解决方案: OpenAPI 3 Library for spring-boot 13.79. Why am i getting an error: Swagger UI unable to render definition, when overriding the default spring registered HttpMessageConverter?When overriding the default spring-boot registered HttpMessageConverter, you should have ByteArrayHttpMessageConverter registered as well to have proper springdoc-openapi support. 12converters.add(new ByteArrayHttpMessageConverter());converters...
2022-12-18
获取lambda
处世让一步为高,退步即进步的张本;待人宽一分是福利人利己的根基。——洪自诚 昨天说了获取lambda代理 今天获取实际lambda对象 重要的是这个函数java.lang.invoke.LambdaMetafactory#metafactory以及altMetafactory 我们在昨天的基础上,进行获取 1234567891011121314151617181920212223@Test@SneakyThrowsvoid testVirtual() { final MethodHandle virtual = MethodHandles.lookup().findVirtual(LambdaExecutable.class, "getName", MethodType.methodType(String.class)); final SerFunc<LambdaExecutable, String> proxy = MethodHandleProxies.asInterfaceInstance(SerFunc.class...
2024-02-01
minio临时凭证直传切换到阿里云oss
孤独没有什么不好。使孤独变得不好,是因为你害怕孤独。——《孤独六讲》 代码非常简单,像之前的实现: 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273import cn.hutool.core.date.DateUtil;import cn.hutool.core.io.file.FileNameUtil;import cn.hutool.core.lang.UUID;import cn.hutool.core.text.StrPool;import cn.hutool.core.util.StrUtil;import cn.hutool.core.util.URLUtil;import cn.hutool.http.ContentType;import com.aliyun.oss.HttpMethod;import com.aliyun.oss.OSS...
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...
2022-01-19
hutool-bom
一个能思想的人,才真是一个力量无边的人。——巴尔扎克 官方文档 我们在使用hutool时可以像如下方式引入单独引入所需模块: 123456789101112131415161718192021222324252627282930313233343536373839<?xml version="1.0" encoding="UTF-8"?><project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <properties> <hutool.versi...

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