自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 收藏
  • 关注

原创 FFmpeg基本功能使用

https://blog.csdn.net/qq_33697094/article/details/112847624

2024-07-24 13:55:54 96

原创 FFmpeg解析音频时长

【代码】FFmpeg解析音频时长。

2024-07-24 13:54:48 91

原创 汉字拼音排序

【代码】汉字拼音排序。

2024-06-27 15:01:00 241

原创 阿里巴巴镜像开源站

1.阿里巴巴镜像开源站。

2024-01-18 11:11:42 550

原创 linux安装Kubernetes

1.用 curl 在 Linux 系统中安装 kubectl。

2024-01-18 10:32:30 379

原创 curl发送get post请求

【代码】curl发送get post请求。

2024-01-09 13:50:13 365

原创 java生成15位随机数字

网址:https://wenku.csdn.net/answer/8b42b7214d6344d3b0f95e63ac1152f3。

2024-01-04 13:30:44 401

原创 LambdaQueryWrapper查询

【代码】LambdaQueryWrapper查询。

2023-12-29 09:41:51 466

原创 redis在linux集群部署

linux集群部署步骤详解

2023-12-26 15:36:07 921

原创 下载linux mysql

1.下载 linux mysql。3.下载13版本sqlyog。4.远程连接没有权限。

2023-12-22 15:52:20 312

原创 下载minio

1.下载window minio。3.下载linux minio。

2023-12-22 15:47:07 654

原创 读取excel写入数据库

String filePath = “C:\Users\Farben\Desktop\地图助残.xlsx”;System.out.println(“共有” + rowNumber + “行数据”);// sheet row column 下标都是从0开始的。// 操作完成时,关闭对象,释放占用的内存空间。// 存放读取出来的姓名和电话。

2023-12-15 12:34:40 457

原创 文件上传与下载

【代码】文件上传与下载。

2023-11-15 10:28:18 74

原创 连接sftp服务器1

package up.cpc.jobs.utils;import com.jcraft.jsch.*;import com.jcraft.jsch.ChannelSftp.LsEntry;import org.apache.logging.log4j.Logger;import javax.imageio.ImageIO;import java.awt.image.BufferedImage;import java.io.File;import java.io.FileInputStr.

2021-05-13 09:49:03 578

原创 月份和日期的获取

Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); //获取昨日时间 calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 1);// calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 10); ...

2021-05-13 09:42:39 105

原创 webservice服务生成

生成webService客户端:https://blog.csdn.net/qq_35067322/article/details/53558775生成webService服务端:https://blog.csdn.net/u010323023/article/details/52926051

2021-02-01 09:30:37 138

原创 日期转字符

Calendar calendar = Calendar.getInstance(); calendar.setTime(new Date()); //获取昨日时间 calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 1);// calendar.set(Calendar.DATE, calendar.get(Calendar.DATE) - 8); ...

2020-11-09 14:05:52 107

原创 Java 3DES加密解密(Commons.Codec Base64)

/** * 转换成十六进制字符串 * @param username * @return * * lee on 2017-08-09 10:54:19 */ public static byte[] hex(String key){ String f = DigestUtils.md5Hex(key); byte[] bkeys = new String(f).getBytes(); byte[] enk..

2020-11-06 14:28:19 193 2

原创 将具体类打成jar包

https://blog.csdn.net/qq_36699423/article/details/92795821

2020-10-26 09:02:35 115

原创 存储过程编写和调用

<!--查询日期表记录--> <!--<select id="selectTransFlowByDay" resultType="com.test.bank.pojo.data.TransFlow"> create procedure p11(IN tb varchar(25),transdt varchar(25)) begin set @sqlStr=concat('select term_ip, ..

2020-10-23 09:06:43 251

原创 springboot测试编写

import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.boot.test.context.SpringBootTest;import org.springframework.test.context.ActiveProfiles;@ActiveProfile..

2020-10-21 14:08:51 132

原创 游标查询

delimiter //DROP PROCEDURE IF EXISTS p11;CREATE PROCEDURE p11 (transdt varchar(25))BEGINDECLARE cur_id CHAR(40);DECLARE cur_tm CHAR(128);DECLARE done INT ;DECLARE cursor_test CURSOR FOR SELECT mchnt_order_id,trans_tm FROM tb where trans_dt=tr...

2020-10-20 19:08:39 175

原创 定时任务

import org.springframework.context.annotation.Configuration;import org.springframework.scheduling.annotation.EnableScheduling;/** * 定时任务配置 * Created by macro on 2019/4/8. */@Configuration@EnableSchedulingpublic class SpringTaskConfig {}impor.

2020-10-14 14:53:45 61

原创 定时任务

import org.springframework.context.annotation.Configuration;import org.springframework.scheduling.annotation.EnableScheduling;/** * 定时任务配置 * Created by macro on 2019/4/8. */@Configuration@EnableSchedulingpublic class SpringTaskConfig {}import.

2020-10-14 14:48:53 65

原创 查询最后十行数据

select * from tbl_scmgm_campus where campus_id like '0000%' order by desc limit 10;select * from tbl_scmgm_campus where campus_id like '0000%' order by campus_id desc limit 10;

2020-10-14 09:57:12 584

原创 logback-spring.xml

<?xml version="1.0" encoding="UTF-8"?><configuration> <springProperty name="log_dir" source="log_dir" defaultValue="D:/test/testOn/logs"/> <springProperty name="maxHistory" source="maxHistory" ...

2020-10-14 09:26:26 92

原创 application.properties

spring.profiles.active=devserver.port=9991#生产数据库连接信息spring.datasource.url=jdbc:mysql://127.0.0.1/testdb?useUnicode=true&characterEncoding=UTF-8&useSSL=true&serverTimezone=UTC&autoReconnect=truespring.datasource.username=spring.datasou

2020-10-14 09:24:20 81

原创 nexus下载地址

https://www.sonatype.com/nexus/repository-oss

2020-10-13 17:06:04 780

原创 将内存信息写入本地

public static void writeFile(String content, String filename) { String saveFile = "" + filename + ".txt";// out = new FileOutputStream("" + docName+ ".txt"); //将文件名截取命名文件夹 从第八位截取到最后一位 String subName = filename.substring(8,..

2020-10-12 16:22:58 142

原创 读取本地文件写入内存

public static List readToBuffer(StringBuffer buffer, String filePath) throws IOException { InputStream is = new FileInputStream(filePath); String line; // 用来保存每行读取的内容 BufferedReader reader = new BufferedReader(new InputStreamReader(is)); l.

2020-10-12 16:21:49 342

原创 配置jdk

path binclassPath libjava_home jdk

2020-10-12 11:20:55 203

原创 测试类的jar包

<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope></dependency><dependency> ...

2020-10-12 10:26:27 513

原创 maven的pom构建

<?xml version="1.0" encoding="UTF-8"?>4.0.0<groupId>com.unionpay</groupId><artifactId>taotao</artifactId><packaging>pom</packaging><version>1.0-SNAPSHOT</version><modules> <module&gt

2020-10-12 09:48:51 170

原创 构建sprinboot项目pom的构建

<?xml version="1.0" encoding="UTF-8"?>4.0.0org.springframework.bootspring-boot-starter-parent2.2.2.RELEASEcom.exampledemo0.0.1-SNAPSHOTdemoDemo project for Spring Boot<properties> <java.version>1.8</java.version>&

2020-10-12 09:45:08 151

原创 发送post请求携带requestParams参数

public static String sendHttpPost(String url, String JSONBody) throws Exception {CloseableHttpClient httpClient = HttpClients.createDefault();HttpPost httpPost = new HttpPost(url);httpPost.addHeader(“Content-Type”, “application/x-www-form-urlencoded”);

2020-08-10 14:58:28 3135

原创 使用OpenSSL生成RSA公私钥

1.openssl genrsa -out rsa_private_key_2048.pem 2048 #生成rsa私,X509编码,2048位2.openssl pkcs8 -in rsa_private_key_2048.pem -out rsa_private_key_2048_pkcs8.pem -nocrypt -topk8 #转换为PKCS#8编码3.openssl rsa -in rsa_private_key_2048.pem -out rsa_public_key_2048.pem -

2020-07-08 16:11:31 578

原创 工作笔记

加签验签https://opensupport.alipay.com/support/helpcenter/192/201602471955?ant_source=zsearch根据公钥证书获取支付宝公钥https://opensupport.alipay.com/support/helpcenter/192/201602473740?ant_source=antsupport当面付https://opendocs.alipay.com/open/194/106078小程序快速接入https://op

2020-07-08 11:14:09 217

原创 定时器任务1DualBlockCache

/**@author liweijie@description@date 2018/7/11 17:24*/public class DualBlockCache {private static final Logger logger = LoggerFactory.getLogger(DualBlockCache.class);/**内存块取用与刷新状态标志0:不可用(初态),下次定时任务刷新A cache块1:A cache块可用,下次定时任务刷新B cache块2:

2020-07-06 10:02:29 116

原创 单线程启动定时刷新

//缓存单线程private static ScheduledExecutorService executorService = Executors.newSingleThreadScheduledExecutor();// 定时刷新内存数据executorService.scheduleWithFixedDelay(new Runnable() {@Overridepublic void run() {// 刷新内存参数flushData(); // 根据reload

2020-07-06 09:59:47 151

原创 定时器任务2

/*** 将配置文件所有属性值读入内存,项目运行时不再读文件*/public static void loadProps() { Properties prop = new Properties(); InputStream in = null; try { Environment environment = ApplicationContextHelper.applicationContext.getEnvironment(); in = ne

2020-07-06 09:56:45 70

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除