上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: import java.io.File; import java.io.IOException; import java.net.JarURLConnection; import java.net.URL; import java.util.*; import java.util.jar.JarEn 阅读全文
posted @ 2024-08-02 17:36 漠孤烟 阅读(43) 评论(0) 推荐(0)
摘要: public class FileLineCountTest { /** * 统计项目代码行数 */ @Test void projectLineCount() { long count = countLines("D:\\Users\\guest\\IdeaProjects\\hello", Li 阅读全文
posted @ 2024-08-01 11:44 漠孤烟 阅读(54) 评论(0) 推荐(0)
摘要: 困境 泛型不可能三角 泛型困境的本质是,关于泛型,你想要缓慢的程序员、缓慢的编译器和臃肿的二进制文件,还是缓慢的执行时间。简单来说就是:要么苦了程序员,要么苦了编绎器,要么降低运行时效率。 不同语言对泛型的考量 以C、C++和Java为例,它们在泛型的设计上有着不同考量: C语言:是系统级的编程语言 阅读全文
posted @ 2024-07-27 23:16 漠孤烟 阅读(53) 评论(0) 推荐(0)
摘要: 1、使用自定义加载依赖包参数loader.path 把依赖包放入lib/目录,再启动添加JVM参数loader.path eg: /jdk-21.0.1/bin/java -Dloader.path=lib/ -jar app.jar 2、使用CP windows: java -cp "target 阅读全文
posted @ 2024-07-24 10:26 漠孤烟 阅读(30) 评论(0) 推荐(0)
摘要: 环境 windows、graalvm(内置有JDK,可以不用再单独下载jdk了) 项目pom.xml ... <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</ar 阅读全文
posted @ 2024-07-23 15:48 漠孤烟 阅读(34) 评论(0) 推荐(0)
摘要: 介绍 AES(高级加密标准,Advanced Encryption Standard)是一种广泛使用的对称密钥加密算法,由比利时密码学家Vincent Rijmen和Joan Daemen设计,他们设计的算法最初被称为Rijndael。AES于2001年被美国国家标准与技术研究院(NIST)选为官方 阅读全文
posted @ 2024-07-22 17:13 漠孤烟 阅读(165) 评论(0) 推荐(0)
摘要: import java.util.concurrent.Flow; import java.util.concurrent.Flow.Publisher; import java.util.concurrent.Flow.Subscriber; public class ReactiveExampl 阅读全文
posted @ 2024-07-10 18:05 漠孤烟 阅读(63) 评论(0) 推荐(0)
摘要: public class FileZipUtil { public static void unzip(String zipFilePath, String destDir) throws IOException { File dir = new File(destDir); if (!dir.ex 阅读全文
posted @ 2024-07-09 14:48 漠孤烟 阅读(136) 评论(0) 推荐(0)
摘要: 引入依赖 <dependency> <groupId>jakarta.mail</groupId> <artifactId>jakarta.mail-api</artifactId> </dependency> <dependency> <groupId>org.springframework</g 阅读全文
posted @ 2024-07-09 09:02 漠孤烟 阅读(19) 评论(0) 推荐(0)
摘要: <repositories> <repository> <id>spring-milestones</id> <name>Spring Milestones</name> <url>https://repo.spring.io/milestone</url> <snapshots> <enabled 阅读全文
posted @ 2024-07-06 09:01 漠孤烟 阅读(15) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页