- 博客(86)
- 资源 (15)
- 收藏
- 关注

原创 各种开发软件的下载安装及永久免费使用
JDKIDEADataGrep7ZIPMongoDBPythonPycharmAnaconda3jd-guiFinalShellMobaXtermTermiusHeidiSQLDbeaverNavicatMySqlRedisRedisEclipseMavenGradleTomcatNotePadBeyondCompareMATEVediaryVMwareXmindAxureApiPostPOSTMAN亿图图示StarUMLtyporaWi
2021-03-30 22:20:30
250
原创 Docker离线安装
(1)将docker-26.0.0.tgz压缩包与docker-compose-linux-x86_64上传到 /tmp 目录下。(3)对docker-compose-linux-x86_64文件重命名并添加可执行权限。(2)解压docker-26.0.0.tgz压缩包并复制到/usr/bin/路径。(4)将docker-compose复制到/usr/bin并查看版本。(5)创建docker.service文件。(8)启动docker并查看状态。(9)设置开机启动并查看版本。(7)添加可执行权限并加载。
2025-06-06 17:49:49
227
原创 docker环境部署
export JAVA_HOME=/root/jdk11/jdk-11.0.23export PATH=JAVAHOME/bin:JAVA_HOME/bin:JAVAHOME/bin:PATHexport CLASSPATH=.:JAVAHOME/lib/dt.jar:JAVA_HOME/lib/dt.jar:JAVAHOME/lib/dt.jar:JAVA_HOME/libFROM openjdk:11VOLUME /home/test/test-server/ADD ./test-server.
2025-04-27 11:12:17
752
原创 nginx安装ssl模块
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module
2024-10-17 10:24:51
179
原创 docker可用镜像源
{“debug”:true,“registry-mirrors”: [“https://hub-mirror.c.163.com”,“https://dockerproxy.com”,“https://mirror.baidubce.com”,“https://ccr.ccs.tencentyun.com”,“https://docker.m.daocloud.io”]}
2024-08-30 11:10:10
564
原创 欧拉安装宝塔报错:ModuleNotFoundError: No module named ‘psutil‘
btpip install geventbtpip install psutil
2024-08-21 14:58:51
278
原创 将http重定向到https
package com.jjh.avmserver.Common;import org.apache.catalina.Context;import org.apache.catalina.connector.Connector;import org.apache.tomcat.util.descriptor.web.SecurityCollection;import org.apach...
2024-02-15 18:53:17
713
1
原创 http转发到https
import org.apache.catalina.Context;import org.apache.catalina.connector.Connector;import org.apache.tomcat.util.descriptor.web.SecurityCollection;import org.apache.tomcat.util.descriptor.web.SecurityConstraint;import org.springframework.boot.web.embedd
2022-06-06 12:22:24
380
1
原创 fastjson toString格式美化
JSON.toJSONString(resultJson, SerializerFeature.PrettyFormat)
2022-01-14 11:35:44
1769
原创 根据年月获取天数
public static int getDaysOfMonth(String dateString) { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM"); Date date = null; try { date = sdf.parse(dateString); } catch (ParseException e) { e.printStackTrace(); }
2021-12-20 09:22:01
258
1
转载 通过filter过滤器对请求参数进行处理
https://blog.csdn.net/Muscleheng/article/details/80067772
2021-12-09 14:35:55
309
转载 支持UEFI的原装win10安装U盘制作教程
现在电脑主板都是uefi的了。要重装系统就得使用原装win10安装盘且支持uefi,下面我就来介绍一下如何制作。1,去msdn上下载原版win10镜像。下载最好使用迅雷下载。2,下载rufus。下载3,准备好一个U盘或移动硬盘(建议使用usb3.0U盘或移动硬盘,这样写入和安装系统时会更快)4,插上U盘或移动硬盘,打开刚刚下载的rufus如果是移动硬盘,记得展开“显示高级选项”并勾选“显示usb外接硬盘”5,选择硬盘,选择刚刚下载好的镜像文件(引导类型选择栏的选择按钮),镜像选项为标准W
2021-03-23 17:07:17
3802
原创 对python async与await的理解
async/await关键字是出现在python3.4以后。网上已经有很多文章对async/await这两个关键字都有讲解,包括如何由python2的yield from发展到async/await这两个关键字,以及一些代码实现都有。但是对于像我这样初次接触的人来说,光看代码分析也不一定能理解,我也是在度娘上搜索很多相关的网站,当中也有官网,都没有发现能让我一眼看懂在什么地方可以用await,什么情况用await的文章。经过自己的重新思考,总算对async、await有一些初步的了解,所以想把自己的理解记录
2021-03-01 18:02:43
360
原创 http请求自动跳转到对应https请求
import org.apache.catalina.Context;import org.apache.catalina.connector.Connector;import org.apache.tomcat.util.descriptor.web.SecurityCollection;import org.apache.tomcat.util.descriptor.web.SecurityConstraint;import org.springframework.boot.web.embedd
2021-02-26 11:00:07
433
1
原创 Springboot工程的日志配置
这里使用lombok库的log功能 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency>ymllogging: file: path: ./TestServerLogslogback-s
2021-02-25 17:02:44
199
1
原创 一个AES加解密工具类
##properties# aes settingaes.default.key=g8v88drv8mIx8PuRaes.model=AES/ECB/PKCS5PaddingAES加解密工具类import lombok.extern.slf4j.Slf4j;import org.apache.commons.codec.binary.Base64;import org.apache.commons.lang.StringUtils;import org.springframework.be
2021-02-25 16:52:36
303
1
原创 使用EasyExcel进行导入导出
使用EasyExcel进行导出导出easyExcel百万级读取导入pom依赖 <!-- 引入Easy Excel用于excel文件的读写 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>2.0.1</version> </dependency>
2021-02-25 16:39:43
703
2
原创 一个通用接口返回类
DOimport lombok.Data;@Datapublic class CommonResult { private String resultCode; private String resultMessage; private Object resultData; private Integer resultCount = 1;}returnpublic class ReturnResult{ public static CommonResult bu
2021-02-25 16:14:19
176
原创 Springboot+JavaMail+redis(jedis作为客户端)实现邮件发送与验证码功能
POM<!-- springboot --><parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.2.RELEASE</version> <relativePath/> </parent>&l
2021-02-25 16:04:57
622
1
原创 Restful调用使用泛型
通用返回类<使用泛型>@Datapublic class MyResult<T> { private String resultCode; private String resultMessage; private T resultData = null; public MyResult(T obj){ resultMessage = "SUCCESS"; resultCode = "0"; resultData = obj; }}自定义R
2021-02-25 15:38:12
461
原创 一个本地缓存工具类
import com.alibaba.fastjson.JSONObject;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;/** * @author 徒手千行代码无bug */public final class LocalCacheUtil { private LocalCacheUtil(){ } public static final Map<String, JSO
2021-01-25 13:55:54
152
原创 Mybatis-Plus使用Page、PageHelper实现分页
一、Page方式1、依赖 <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.2.0</version> </dependency>2、实现开
2021-01-15 15:29:49
4652
2
原创 HyperLedger Indy的使用(Java+Python)
Write a DID and Query Its VerkeyRotate a KeySave a Schema and Cred DefIssue a CredentialNegotiate a ProofSend a Secure Message1、Write a DID and Query Its VerkeyIndy-SDK Developer Walkthrough #1, Java Edition[ Python | .NET | Node.js | Objective C
2020-12-29 13:56:03
1653
原创 区块链是怎么保证可信的?附:一张图看懂区块链
区块链是怎么记账并保证账页可信的?创世区块:创建一个区块,序列号为0,交易信息为空,时间为当前时间,不可更改,一般使用单例模式。将创世区块的原始信息进行Hash,保存。第二个区块:原始信息包括:创世区块的hash值,当前区块的交易信息,当前时间。将原始信息进行Hash,保存。序列号为1。第三个区块:原始信息包括:第二个区块的hash值,当前区块的交易信息,当前时间。将原始信息进行Hash,保存。序列号为2。依次类推,因为每次都将前一个的Hash值当作原始信息,则最新的区块总是间接包含了所有之前的账页
2020-12-25 17:09:45
1146
原创 SQL:按某字段排序,若该字段值为null,用另一字段排序
SQL:按某字段排序,若该字段值为null,用另一字段排序.问题产生原因:群友遇到的睿智产品经理整活。先上sql:SELECT * FROM test ORDER BY IFNULL(updateTime, createTime) DESC;表如下:结果如下:
2020-11-05 16:51:53
1298
1
原创 Java单例模式中的双重检查锁机制
Java单例模式中的双重检查锁机制public class ClassA{ volatile private static ClassA instance = null; public static ClassA getInstance() { // 双检查锁机制,避免同步导致的低并发度 if(instance == null) { synchronized (ClassA.class){ if (instance == null) { instanc
2020-11-04 15:21:29
475
原创 Exception:Invalid character found in the request target.The valid characters are defined in RFC 7230
Exception:Invalid character found in the request target.The valid characters are defined in RFC 7230 and RFC 3986.原因:由于tomcat版本不兼容导致请求url中特殊字符抛异常。解决:在Springboot的启动类增加以下代码: @Bean public ConfigurableServletWebServerFactory webServerFactory() { TomcatSe
2020-10-29 14:18:23
190
原创 MySQL分组取最值
一、显式内连接SELECT a.* from inventory_seller_product a inner JOIN(select product, seller,max(total_sold) as total_sold from inventory_seller_product group by product)bon a.product=b.product and a.total_sold=b.total_sold AND a.product IN (‘1’, ‘2’)order by a
2020-10-24 17:55:21
194
基于flask的项目搭建与部署.rar
2020-03-14
Mybatis-Plus-Generator自动生成代码示例.rar
2020-09-27
maven(基于springboot)父子工程Demo
2021-01-14
mybatisplus自动代码
2021-01-11
Effective Java中文第三版.rar
2019-12-16
AutoMybatis.rar
2020-01-04
centos安装.docx
2020-02-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人