随笔分类 -  java后端笔记

摘要:java -jar test.jar >> d:/test.log 2>&1 阅读全文
posted @ 2024-12-06 19:14 _Lawrence 阅读(6) 评论(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 阅读(5) 评论(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 阅读(15) 评论(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 阅读(15) 评论(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 阅读(42) 评论(0) 推荐(0) 编辑
摘要:http://patorjk.com/software/taag/#p=display&h=0&f=3D-ASCII&t=LLF 阅读全文
posted @ 2023-11-23 11:09 _Lawrence 阅读(7) 评论(0) 推荐(0) 编辑
摘要:进入bin目录sh startup.sh -m standalone如果无法启动 改用以下命令进行启动: bash -f ./startup.sh -m standalone 阅读全文
posted @ 2023-06-29 10:08 _Lawrence 阅读(58) 评论(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 阅读(82) 评论(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 阅读(302) 评论(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 阅读(49) 评论(0) 推荐(0) 编辑
摘要:/** *@Author:LLF *@description: *@Date:${DATE} ${TIME} *@version: V1.0 */ 阅读全文
posted @ 2023-03-20 10:24 _Lawrence 阅读(60) 评论(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 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-23 08:53 _Lawrence 阅读(199) 评论(0) 推荐(0) 编辑
摘要:安装junit插件 阅读全文
posted @ 2023-02-22 19:03 _Lawrence 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-22 15:59 _Lawrence 阅读(71) 评论(0) 推荐(0) 编辑
摘要:安装文件目录:idea64.exe.vmoptions -Xms256m -Xmx1024m -XX:ReservedCodeCacheSize=240m -XX:+UseConcMarkSweepGC -XX:SoftRefLRUPolicyMSPerMB=50 项目启动配置:vim option 阅读全文
posted @ 2022-12-15 20:08 _Lawrence 阅读(112) 评论(0) 推荐(0) 编辑
摘要:1、String.format("%.2f",(float) 2/3) 2、DecimalFormat decimalFormat = new DecimalFormat("#.00"); decimalFormat.format((double) 10/3); 阅读全文
posted @ 2022-09-29 18:56 _Lawrence 阅读(62) 评论(0) 推荐(0) 编辑
摘要:public static boolean isBetween(LocalDateTime beginTime, LocalDateTime endTime) { LocalDateTime now = LocalDateTime.now(); boolean flag = false; if (n 阅读全文
posted @ 2022-09-07 15:16 _Lawrence 阅读(580) 评论(0) 推荐(0) 编辑
摘要:org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframe work.boot.web.server.WebServe 阅读全文
posted @ 2022-08-04 10:02 _Lawrence 阅读(186) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示