会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
BUG工厂
物必先腐,而后虫生
博客园
首页
联系
订阅
管理
上一页
1
2
3
4
5
6
···
12
下一页
2023年6月15日
SpringBoot集成kafka
摘要: 环境springboot2.7 +kafka3.0。kafka安装请自行百度,话不多说直接上代码。 1、添加maven依赖 <dependency> <groupId>org.springframework.kafka</groupId> <artifactId>spring-kafka</arti
阅读全文
posted @ 2023-06-15 19:38 bug毁灭者
阅读(291)
评论(0)
推荐(0)
2023年4月15日
JAVA远程请求工具类
摘要: import com.alibaba.fastjson.JSONObject; import org.apache.http.Consts; import org.apache.http.HttpResponse; import org.apache.http.HttpStatus; import
阅读全文
posted @ 2023-04-15 18:33 bug毁灭者
阅读(70)
评论(0)
推荐(0)
2023年3月24日
Linux手动安装Redis
摘要: 安装 下载、解压、编译Redis cd /usr wget http://download.redis.io/releases/redis-6.0.6.tar.gz tar xzf redis-6.0.6.tar.gz mv redis-6.0.6 redis6 cd redis6 make 进入到
阅读全文
posted @ 2023-03-24 14:25 bug毁灭者
阅读(36)
评论(0)
推荐(0)
2023年3月16日
Linux中常用的查看系统信息的命令
摘要: 查看系统版本命令 uname 谈到系统版本就一定会想到uname,查看系统内核版本 uname -参数 其他的什么-n -m -r 参数都忽略,直接-a [root@linuxprobe ~]#uname -a Linux linuxprobe.com 2.6.32-358.el6.x86_64 #
阅读全文
posted @ 2023-03-16 09:11 bug毁灭者
阅读(118)
评论(0)
推荐(0)
2023年3月10日
JAVA多线程处理大量数据(二)--推荐
摘要: 背景说明:要对服务器上一个目录进行全量文件读取 1、多线程执行类--FileThreadUtils.java import cn.hutool.core.collection.CollUtil; import cn.hutool.core.io.FileUtil; import com.alibab
阅读全文
posted @ 2023-03-10 19:19 bug毁灭者
阅读(768)
评论(0)
推荐(0)
2023年3月8日
JAVA多线程处理大量数据(一)
摘要: 背景说明:要对服务器上一个目录进行全量文件读取,采用传统的单线程性能较差,耗时严重。 1、多线程执行类--FileThreadUtils.java import cn.hutool.core.collection.CollUtil; import cn.hutool.core.io.FileUtil
阅读全文
posted @ 2023-03-08 20:11 bug毁灭者
阅读(2225)
评论(0)
推荐(0)
2022年11月22日
Nginx文件目录访问配置
摘要: 不能直接访问某个目录,但可以访问目录下具体的文件 test目录绝对地址:/data/upload/test location /test { index index.html; #try_files $uri $uri/ /index.html; root /data/upload; }
阅读全文
posted @ 2022-11-22 11:01 bug毁灭者
阅读(1704)
评论(0)
推荐(0)
2022年11月9日
JAVA将文件另存为UTF8格式
摘要: /** * @description: 将文本文件另存为UTF8格式 * @author: bug * @date: 2022/11/8 19:22 * @param file * @param srcFilePath * @return java.lang.String */ private St
阅读全文
posted @ 2022-11-09 08:42 bug毁灭者
阅读(705)
评论(0)
推荐(0)
2022年6月23日
SpringBoot 2.x集成AWS S3对象存储
摘要: 1、pom配置 <!--锁定对象存储版本--> <dependencyManagement> <dependencies> <dependency> <groupId>software.amazon.awssdk</groupId> <artifactId>bom</artifactId> <ver
阅读全文
posted @ 2022-06-23 19:49 bug毁灭者
阅读(3076)
评论(1)
推荐(2)
SpringBoot 2.x集成Elasticsearch
摘要: 环境配置:SpringBoot:2.6.0 ,Elasticsearch:7.16.2 1、pom配置 <properties> <elasticsearch.version>7.16.2</elasticsearch.version> </properties> <dependency> <gro
阅读全文
posted @ 2022-06-23 19:16 bug毁灭者
阅读(345)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
12
下一页
公告