自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 nginx部署vue项目

【代码】nginx部署vue项目。

2023-12-18 17:44:52 533

原创 springboot 字典翻译

springboot字典翻译

2023-06-05 16:58:13 1210

原创 springboot自定义线程池+mdc异步线程注入traceid

​springboot自定义线程池,mdc异步线程注入traceid

2023-06-05 16:30:31 781

原创 mogodb foreach

mongodb笔记

2022-11-10 13:39:16 386 1

原创 springboot+skywalking初体检

springboot+skywalking

2022-10-19 15:08:50 1170 3

原创 springboot中使用rabbitmq

springboot使用rabbitmq

2022-09-19 09:12:02 673

原创 springboot 请求url path提取

path提取

2022-09-02 10:47:35 1065

原创 springboot @PostMapping注解使用

@PostMapping注解使用

2022-08-31 11:17:40 4086

原创 springboot @Scheduled和@Async

@Scheduled和@Async

2022-08-18 10:21:06 688

原创 windows查询端口占用

windows查询端口占用

2022-08-11 16:07:03 355

原创 python WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None))

python安装模块异常

2022-08-09 21:44:20 45262 6

原创 页面迅速响应的标准

页面迅速响应的标准

2022-07-08 11:22:59 694

原创 mybatis-plus自定义SqlSessionFactory

mybatis-plus自定义SqlSessionFactory

2022-06-16 14:56:22 2050

原创 centos安装docker

centos安装docker

2022-06-08 17:08:12 89

原创 centos 更换yum源

更换yum源

2022-06-08 15:15:47 1141

原创 前端通过链接下载图片

<!DOCTYPEhtml><html><head><metacharset="utf-8"><title></title><scriptsrc="https://unpkg.zhimg.com/[email protected]/dist/jquery.min.js">&lt...

2022-05-11 15:02:17 484

原创 java单例实现

参考链接:2021-11-13 枚举、Enum中的常用类、Enum中添加新方法、switch语句中的Enum、Enum静态导入、枚举实现单例设计模式_轩轩Aminent的博客-CSDN博客参考链接:Java实现单例的5种方式_scuwangjun的博客-CSDN博客_java单例package org.example;import java.io.*;/** * @author coco * @date 2022/5/11 *///饿汉模式public class Single.

2022-05-11 11:48:16 104

原创 spring data mongodb 多数据源连接

1、依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</artifactId></dependency><dependency> <groupId>org.springframework.boot</groupId

2022-05-07 17:52:35 1410

原创 Aggregation-聚合查询

Aggregation:参数说明:sql(Operators) where ($match) 、group by ($group)、having($match)、select($project)、order by($sort)、limit($limit) sum($sum)、count($sum)、join($lookup)SELECT cust_id,SUM(price) as totalFROM ordersWHERE status = 'A'GROUP B...

2022-05-05 17:46:54 1416

原创 继承HttpServletRequestWrapper自定义,重复消费请求参数

package com.xxx.request;import javax.servlet.ReadListener;import javax.servlet.ServletInputStream;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletRequestWrapper;import java.io.ByteArrayInputStream;import java.io.IO.

2022-03-25 15:15:31 3267

原创 LocalDateTime和时间戳互转

Unix时间戳(Unix timestamp),或称Unix时间(Unix time)、POSIX时间(POSIX time),是一种时间表示方式,定义为从格林威治时间1970年01月01日00时00分00秒起至现在的总秒数。java实现获得时间戳:LocalDateTime.now().toInstant(ZoneOffset.of("+8")).toEpochMilli();时间戳转换成LocalDateTimeLong timestamp = LocalDateTime.now().t

2022-03-25 09:39:36 8870 1

原创 mybatis-plus 自定义xml实现分页

1、定义实体类2、定义一个mapper接口public interface xxxMapper extends BaseMapper<xxxx> { IPage<xxx> queryUserReportRecordList(IPage<xxx> page,@Param("dto") xxxx dto);}3、编写xml<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapp

2022-03-22 10:24:35 2224

原创 springboot使用配置文件为类静态变量赋值

链接一:java静态类如何赋值_Java如何读取配置文件并赋值静态变量_weixin_42523552的博客-CSDN博客链接二:1.SpringBoot 读取配置文件的值 赋给静态变量 - java_静止 - 博客园 (cnblogs.com)

2022-03-01 17:08:56 345

原创 微信支付V3 JSAPI签名

package com.dc.smart.core.modules.wxpay.utils.SDK;import com.wechat.pay.contrib.apache.httpclient.util.PemUtil;import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.util.Base64Utils;import org.w3c.dom.Node;import org.w3.

2022-03-01 10:23:37 1579

原创 satoken过滤swagger

package com.dc.smart.core.config;import cn.dev33.satoken.interceptor.SaRouteInterceptor;import org.hibernate.validator.HibernateValidator;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;.

2022-03-01 10:17:43 1996

原创 mybatis-plus 自动填充与多租户

一、自动填充package net.genesysinfo.digitalreport.config;/** * @author coco * @date 2021/8/23 */import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;import org.apache.ibatis.reflection.MetaObject;import java.time.LocalDateTime;public cl

2022-02-11 16:51:46 1049

原创 java 使用RSA加密和解密

package com.example.demo;import org.apache.commons.codec.binary.Base64;import org.apache.commons.io.IOUtils;import javax.crypto.Cipher;import java.io.ByteArrayOutputStream;import java.security.*;import java.security.interfaces.RSAPrivateKey;impo.

2022-02-11 16:42:33 786

原创 Linux 查询文件内容重复数 uniq

原文Linux 查询文件内容重复数 uniq_ekliu Blog-CSDN博客https://blog.csdn.net/ekliu/article/details/8931651用途报告或删除文件中重复的行。语法uniq [ -c | -d | -u ] [ -f Fields ] [ -s Characters ] [ -Fields ] [ +Characters ] [ InFile [ OutFile ] ]  -c 在输出行前面加上每行在输入文件中出现的次数。  -d

2022-01-28 18:04:40 5636

原创 springboot 排除swagger 拦截

package com.dc.smart.core.config;import cn.dev33.satoken.interceptor.SaRouteInterceptor;import org.hibernate.validator.HibernateValidator;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;.

2022-01-28 16:09:46 4199

原创 springboot事件监听

本文内容是我工作中使用的方式,还有其他实现方式,参考:(1条消息) SpringBoot-事件监听的4种实现方式_ignorewho的博客-CSDN博客_springboot监听https://blog.csdn.net/ignorewho/article/details/80702827自定义事件:继承自ApplicationEvent抽象类,然后定义自己的构造器自定义监听:实现ApplicationListener<T>接口,然后实现onApplicationEvent方法事件发..

2022-01-07 09:12:34 399

原创 springboot参数校验

参考文章:(1条消息) springBoot参数联合校验,自定义分组校验_yuhui666666的博客-CSDN博客_springboot 参数联合校验https://blog.csdn.net/y666666y/article/details/118482863一、自定义注解完成微信支付,申请退款参数二选一@GroupSequenceProvider(value = NativeRefundSequenceProvider.class)@Datapublic class NativeRef.

2022-01-04 10:58:18 720

原创 微信支付 v3

微信支付 v3

2021-12-30 17:19:11 1392 4

原创 springboot中读取classpath下的资源文件

1、NIO包中的操作 String content = new String(Files.readAllBytes(Paths.get(ClassLoader.getSystemResource("static/xxxx.txt").toURI())), "utf-8"); 2、ClassPathResource 读取 inputstream ClassPathResource classPathResource = new ClassPathResource

2021-12-29 14:33:36 1482

原创 Springboot 多线程

1. 自定义线程池package net.genesysinfo.digitalreport.config;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.scheduling.annotation.EnableAsync;import org.springfram.

2021-11-24 11:47:30 540

原创 去掉Git log中的一堆Merge remote-tracking branch ‘origin/develop‘

针对Merge remote-tracking branch 'origin/develop'的认识,我也不是很清楚,看过几篇文章但对我的问题也没有解决。就自己想了一个曲线救国的思路。1、下图的idea中git log的情况,每次在合并main分支的时候都回出现Merge2、其他文章提到的解决方案# download the latest commits (更新本地远程所有分支commit记录)git remote update -p# update the local bran..

2021-10-20 10:08:12 5170 1

原创 Springboot统一异常返回

1、返回异常接收页面一、引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <dependency> .

2021-10-14 14:06:27 500

原创 Springboot中Logback日志配置

1、根据日期和文件大小分割日志,同一天产生多个日志,以索引标识实际使用修改<maxFileSize>1KB</maxFileSize> 的值<configuration> <!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径--> <property name="LOG_HOME" value="D:\\" /> <!-- %m输出的信息,%p日志级别,%t线程名,%d日期,%...

2021-10-13 17:10:35 1332

原创 将已有项目添加到git

git initgit add .git commit -m "xxx"git remote add origin xxx.gitgit pullgit push -u origin mastergit checkout -b xxxQ: Can't Update No tracked branch configured for branch main or the branch doesn't exist. To make your branch track a...

2021-10-13 15:40:22 329

原创 windows 命令行停止8080服务

原文:在Windows10操作系统中,如何终止占有的8080端口的tomcat进程_zzywwbs的博客-CSDN博客_win10关闭8080端口https://blog.csdn.net/zzywwbs/article/details/79075168在Windows操作系统中,我们在启动一个tomcat服务器时,经常会发现8080端口已经被占用的错误,而我们又不知道如何停止这个tomcat服务器。本文将通过命令来强行终止这个已经运行的tomcat进程如下:1、首先查找到占用8080端

2021-10-11 09:51:26 1477

原创 Springboot整合lettuce密码错误Caused by: io.lettuce.core.RedisCommandExecutionException: NOAUTH Authenticat

参考:Springboot整合lettuce密码错误io.lettuce.core.RedisCommandExecutionException: NOAUTH Authentication require_hanyi_的专栏-程序员秘密 - 程序员秘密 (cxymm.net)开发环境:springboot 2.4.5 spring-boot-starter-data-redis 2.4.5 redis 4.1 lettuce 6.1.4解决办法: <!-

2021-09-29 16:09:00 2469

空空如也

空空如也

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

TA关注的人

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