上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: 表达式例子 0 * * * * ? 每1分钟触发一次 0 0 * * * ? 每天每1小时触发一次 0 0 10 * * ? 每天10点触发一次 0 * 14 * * ? 在每天下午2点到下午2:59期间的每1分钟触发 0 30 9 1 * ? 每月1号上午9点半 0 15 10 15 * ? 每月 阅读全文
posted @ 2023-07-27 10:16 KeepSmiling_me 阅读(406) 评论(0) 推荐(0)
摘要: Spring 中定时任务有两种实现方式:1.@Scheduled(cron表达式)2.基于SchedulingConfigurer注册定时任务这两者的区别主要有1.@Scheduled不支持动态修改定时周期,只能停止服务器,修改cron表达式,再启动服务器;SchedulingConfigurer可 阅读全文
posted @ 2023-06-27 14:14 KeepSmiling_me 阅读(2058) 评论(0) 推荐(0)
摘要: <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.7.7</version> </dependency> import cn.hutool.cache.CacheUtil; 阅读全文
posted @ 2023-06-08 10:29 KeepSmiling_me 阅读(81) 评论(0) 推荐(0)
摘要: spring mvc给我们提供了一个@RestControllerAdvice来增强所有@RestController,然后使用@ExceptionHandler注解,就可以拦截到对应的异常。 @RestControllerAdvice public class ControllerExceptio 阅读全文
posted @ 2023-06-07 09:56 KeepSmiling_me 阅读(84) 评论(0) 推荐(0)
摘要: 1.clickhouse: Array(Date)=TEXT Array(DateTime=TEXT Array(FLoat32)=TEXT Array(FLoat64)=TEXT Array(Int16)=TEXT Array(Int32)=TExT Array(Int64)=TEXT Array 阅读全文
posted @ 2023-05-31 14:56 KeepSmiling_me 阅读(60) 评论(0) 推荐(0)
摘要: <dependency> <groupId>com.oracle.database.jdbc</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0.4</version> </dependency> <dependency> <group 阅读全文
posted @ 2023-05-23 11:06 KeepSmiling_me 阅读(40) 评论(0) 推荐(0)
摘要: 引入 <dependency> <groupId>com.liferay</groupId> <artifactId>com.fasterxml.jackson.annotations</artifactId> <version>2.10.3.LIFERAY-PATCHED-1</version> 阅读全文
posted @ 2023-05-23 10:54 KeepSmiling_me 阅读(118) 评论(0) 推荐(0)
摘要: import lombok.SneakyThrows; import org.springframework.beans.BeansException; import org.springframework.beans.factory.annotation.Autowired; import org 阅读全文
posted @ 2023-05-23 10:39 KeepSmiling_me 阅读(55) 评论(0) 推荐(0)
摘要: 1.mysql -u root -p 输入密码 2.选择数据库 use database 2.导入文件csv文件 load data local infile 'E:\\tmp\\prod.csv' into table ${tableName} fields terminated by ',' l 阅读全文
posted @ 2023-05-23 09:45 KeepSmiling_me 阅读(82) 评论(0) 推荐(0)
摘要: import lombok.Data; import lombok.SneakyThrows; import org.springframework.util.StringUtils; import java.sql.Connection; import java.sql.Driver; impor 阅读全文
posted @ 2023-05-22 14:54 KeepSmiling_me 阅读(123) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页