springboot之定时任务@Scheduled详解 1.使用SpringBoot创建定时任务非常简单,目前主要有以下三种创建方式: 一、基于注解(@Scheduled) 二、基于接口(SchedulingConfigurer) 前者相信大家都很熟悉,但是实际使用中我们往往想从数据库中读取指定时间 ...
分类:
编程语言 时间:
2021-06-02 14:25:49
阅读次数:
0
将打包apk重命名 android { //命令打包apk重命名 android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "YT-${variant.name}-${variant.ver ...
分类:
移动开发 时间:
2021-06-02 14:11:15
阅读次数:
0
MyBatis_Plus 代码生成器 开启Mapper接口扫描 @Configuration @EnableTransactionManagement @MapperScan("com.hu.mylearn.mapper") public class MyBatisPlusConfig { // 旧 ...
分类:
其他好文 时间:
2021-06-02 13:39:52
阅读次数:
0
SQL注入的问题 SQL存在漏洞,会被攻击导致数据泄露。 SQL注入测试类: import com.qsy.lesson02.utils.JdbcUtils; import java.sql.Connection; import java.sql.ResultSet; import java.sql ...
分类:
数据库 时间:
2021-06-02 13:20:52
阅读次数:
0
model代码如下: @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) @Where(clause="isValid=1 and orderType=1") @JoinColumn(name = "orderUUID", ref ...
分类:
Web程序 时间:
2021-06-02 13:20:12
阅读次数:
0
1、定义一个执行器抽象类 public abstract class AbstractExecutor<T> { /** * 执行业务逻辑 */ public void doExecute(T t) { try { // 初始化 this.init(t); // 执行逻辑 this.process( ...
分类:
其他好文 时间:
2021-06-02 13:14:08
阅读次数:
0
解决方法: C:\Users\xuefen.lv\AppData\Roaming\npm\node_modules\nrm\cli.js的第17行 注释并修改为如下 const NRMRC = path.join(process.env[(process.platform == 'win32') ? ...
分类:
其他好文 时间:
2021-06-02 13:01:43
阅读次数:
0
Spring 动态代理万能工具类 public class ProxyInvocationHandler implements InvocationHandler { //代理谁 private Object target; public void setTarget(Object target) ...
分类:
编程语言 时间:
2021-06-02 11:41:10
阅读次数:
0
此篇主要内容:1、代码逻辑(流程图呈现) 2、具体实现语句 3、脚本(脚本为完善后的) 一、分页逻辑图 2、语句分析与记录 3、脚本 using System; using System.Collections; using System.Collections.Generic; using Uni ...
分类:
其他好文 时间:
2021-06-02 10:37:57
阅读次数:
0
说明 使用了自定义的数据库连接池,没有对连接做timeout处理,以后再完善。 由于jdbc不能完全支持clickhouse中的数据类型,采用raw sql的方式处理。 后期考虑封装Java对象到Clickhouse数据类型的映射。 插入时应采用批量写入,例子中的代码仅为测试目的,没有做封装。 <d ...
分类:
数据库 时间:
2021-06-02 10:35:03
阅读次数:
0