会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tangchuanzhu
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
9
下一页
2023年4月20日
FastDFS服务搭建
摘要: # 以下是搭建FastDFS集群服务的详细文档教程: ## 准备工作 在准备开始前,需要准备好以下环境和软件: CentOS 7 64位系统 FastDFS v5.11 FastDHT v5.11 Nginx libfastcommon v1.0.43 ## 安装libfastcommon ## 下
阅读全文
posted @ 2023-04-20 16:24 紫川先生
阅读(55)
评论(0)
推荐(0)
2023年3月29日
请求需要登录的接口
摘要: <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.75</version> </dependency> <dependency> <groupId>com.anther
阅读全文
posted @ 2023-03-29 21:35 紫川先生
阅读(72)
评论(0)
推荐(0)
2023年3月25日
VsCode 的 settings.json配置
摘要: { " workbench.colorTheme": "Monokai", "editor.matchBrackets": "never", "workbench.iconTheme": "vscode-icons", "diffEditor.ignoreTrimWhitespace": false
阅读全文
posted @ 2023-03-25 10:19 紫川先生
阅读(342)
评论(0)
推荐(0)
2022年10月28日
docker容器更换源
摘要: docker 容器换源 $ sed -i s@/archive.ubuntu.com/@/mirrors.aliyun.com/@g /etc/apt/sources.list $ sed -i s@/security.ubuntu.com/@/mirrors.aliyun.com/@g /etc/
阅读全文
posted @ 2022-10-28 14:28 紫川先生
阅读(141)
评论(0)
推荐(0)
2022年10月18日
责任链模式-实践
摘要: 抽象类 public abstract class AbstractHandler { private AbstractHandler nextHandler; public AbstractHandler getNextHandler() { return nextHandler; } publi
阅读全文
posted @ 2022-10-18 15:27 紫川先生
阅读(20)
评论(0)
推荐(0)
策略模式-实践
摘要: 策略模式 1. 定义一个策略接口 public interface IFileStrategy { // 获取文件类型 FileTypeResolveEnum gainFileType(); // 文件处理的方法 void resolve(Object objectParam); } enum Fi
阅读全文
posted @ 2022-10-18 11:17 紫川先生
阅读(43)
评论(0)
推荐(0)
2022年10月9日
synchronized、ReentrantLock、LockSupport 的使用
摘要: synchronized 线程等待唤醒机制 private static final Object objLock = new Object(); public static void main(String[] args) { new Thread(()->{ synchronized (objL
阅读全文
posted @ 2022-10-09 14:08 紫川先生
阅读(43)
评论(0)
推荐(0)
2022年9月29日
多线程生产者和消费者
摘要: 多线程生产者和消费者 public class TestDemo { public static void main(String[] args) { ShareData shareData = new ShareData(); new Thread(() -> { for (int i = 0;
阅读全文
posted @ 2022-09-29 17:31 紫川先生
阅读(17)
评论(0)
推荐(0)
CountDownLatch 、CyclicBarrier、Semaphore 使用
摘要: Semaphore 使用 public class SemaphoreDemo { public static void main(String[] args) { /** * 多线程同时抢多个资源 * permits=1时,相当于锁 * */ Semaphore semaphore = new S
阅读全文
posted @ 2022-09-29 14:22 紫川先生
阅读(20)
评论(0)
推荐(0)
2022年9月27日
MapStruct集成进行Bean的转换
摘要: MapStruct集成 依赖 <mapstruct.version>1.5.2.Final</mapstruct.version> <lombok.version>1.18.16</lombok.version> <!--MapStruct相关依赖--> <dependency> <groupId>
阅读全文
posted @ 2022-09-27 15:55 紫川先生
阅读(67)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
9
下一页
公告