随笔分类 -  java后端笔记

摘要:public static String convertImageToBase64(String url) throws IOException { String urls = url.replaceAll("192.168.10.242", "192.192.192.192"); // 创建HTT 阅读全文
posted @ 2025-09-18 15:16 _Lawrence 阅读(9) 评论(0) 推荐(0)
摘要:增加以下配置: 阅读全文
posted @ 2025-06-10 15:12 _Lawrence 阅读(20) 评论(0) 推荐(0)
摘要:命令:curl -X GET "http://192.168.101.63:8848/nacos/v1/ns/service/list?pageNo=1&pageSize=100" -H "Content-Type: application/json" 阅读全文
posted @ 2025-06-10 14:27 _Lawrence 阅读(64) 评论(0) 推荐(0)
摘要:1、redis-cli.exe -h localhost -p 6379 -a 登录密码 阅读全文
posted @ 2025-04-24 16:38 _Lawrence 阅读(26) 评论(0) 推荐(0)
摘要:java -jar test.jar >> d:/test.log 2>&1 阅读全文
posted @ 2024-12-06 19:14 _Lawrence 阅读(18) 评论(0) 推荐(0)
摘要:创建bat文件: 启动nacos和redis @echo off start cmd /k "cd /d F:\jar\nacos-server-2.0.4\nacos\bin && .\startup.cmd -m standalone" start cmd /k "cd /d F:\jar\Re 阅读全文
posted @ 2024-09-27 09:50 _Lawrence 阅读(19) 评论(0) 推荐(0)
摘要:package com.hcp.utils.config; import org.apache.commons.codec.digest.DigestUtils; import sun.misc.BASE64Decoder; import sun.misc.BASE64Encoder; import 阅读全文
posted @ 2024-04-29 18:40 _Lawrence 阅读(22) 评论(0) 推荐(0)
摘要:package com.hcp.config.rsa; import org.bouncycastle.util.encoders.Base64; import javax.crypto.Cipher; import java.security.*; public class RsaUtil { / 阅读全文
posted @ 2024-04-29 17:52 _Lawrence 阅读(25) 评论(0) 推荐(0)
摘要://strs 周集合,例如 一、二、三、四、五、六 public static boolean isWeek(String strs){ Calendar calendar = Calendar.getInstance(); int dayOfWeek = calendar.get(Calendar 阅读全文
posted @ 2024-01-20 18:30 _Lawrence 阅读(54) 评论(0) 推荐(0)
摘要:http://patorjk.com/software/taag/#p=display&h=0&f=3D-ASCII&t=LLF 阅读全文
posted @ 2023-11-23 11:09 _Lawrence 阅读(16) 评论(0) 推荐(0)
摘要:进入bin目录sh startup.sh -m standalone如果无法启动 改用以下命令进行启动: bash -f ./startup.sh -m standalone 阅读全文
posted @ 2023-06-29 10:08 _Lawrence 阅读(73) 评论(0) 推荐(0)
摘要:<!--公共interface模块--> <dependency> <groupId>com.hcp</groupId> <artifactId>dubbointerface</artifactId> <version>0.0.1-SNAPSHOT</version> </dependency> 阅读全文
posted @ 2023-05-18 21:42 _Lawrence 阅读(108) 评论(0) 推荐(0)
摘要:package com.hcp.tools.file; /** * @Author:LLF * @description: * @Date:2023/5/17 20:15 * @version: V1.0 */ public enum Base64FileTypeEnum { // 文件类型 BAS 阅读全文
posted @ 2023-05-17 21:31 _Lawrence 阅读(427) 评论(0) 推荐(0)
摘要:<dependency> <groupId>com.belerweb</groupId> <artifactId>pinyin4j</artifactId> <version>2.5.1</version> </dependency> package com.hcp.tools; import ne 阅读全文
posted @ 2023-05-10 09:40 _Lawrence 阅读(106) 评论(0) 推荐(0)
摘要:/** *@Author:LLF *@description: *@Date:${DATE} ${TIME} *@version: V1.0 */ 阅读全文
posted @ 2023-03-20 10:24 _Lawrence 阅读(67) 评论(0) 推荐(0)
摘要:ThreadPoolTaskExecutor就是在java中ThreadPoolExecutor的基础上封装的 最佳线程数 =CPU 核数 * [ 1 +(I/O 耗时 / CPU 耗时)] 1、ThreadPoolTaskExecutor package com.hcp.tools.dxc; im 阅读全文
posted @ 2023-03-17 16:57 _Lawrence 阅读(258) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-23 08:53 _Lawrence 阅读(202) 评论(0) 推荐(0)
摘要:安装junit插件 阅读全文
posted @ 2023-02-22 19:03 _Lawrence 阅读(326) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-02-22 15:59 _Lawrence 阅读(81) 评论(0) 推荐(0)