会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
加瓦儿
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
13
下一页
2026年1月5日
一个脚本清理maven未下载成功的残留文件
摘要: 一个脚本清理maven未下载成功的残留文件 windows系统,创建文件clean.bat,代码如下: set REPOSITORY_PATH=C:\Users\Administrator\.m2 rem Searching now... for /f "delims=" %%i in ('dir
阅读全文
posted @ 2026-01-05 11:35 漠孤烟
阅读(3)
评论(0)
推荐(0)
2025年11月8日
Java压缩图片工具包thumbnailator
摘要: 引入依赖 <dependency> <groupId>net.coobird</groupId> <artifactId>thumbnailator</artifactId> <version>0.4.21</version> </dependency> 创建工具类 ThumbnailatorCom
阅读全文
posted @ 2025-11-08 10:43 漠孤烟
阅读(20)
评论(0)
推荐(0)
2025年6月17日
GraalVM使用Maven进行构建native image
摘要: GraalVM使用Maven进行构建native image https://graalvm.github.io/native-build-tools/latest/end-to-end-maven-guide.html Resource处理: https://www.graalvm.org/lat
阅读全文
posted @ 2025-06-17 21:19 漠孤烟
阅读(44)
评论(0)
推荐(0)
2025年6月3日
Jar包内遍历指定目录里的文件列表
摘要: 代码 try { // resourceDirectory 是classpath或resources里的路径,例如:META-INF Enumeration<URL> resources = this.getClass().getClassLoader().getResources(resource
阅读全文
posted @ 2025-06-03 11:30 漠孤烟
阅读(36)
评论(0)
推荐(0)
2025年6月1日
GraalVM查看所有native编译时的专家参数
摘要: 以GraalVM 24社区版为例: 命令行及参数 native-image --expert-options 运行结果 -H:±AllowIncompleteClasspath Deprecated. Default: - (disabled). -H:±AllowVMInspection Enab
阅读全文
posted @ 2025-06-01 22:58 漠孤烟
阅读(76)
评论(0)
推荐(0)
GraalVM 配置静态资源
摘要: resource-config.json 配置GraalVM静态资源文件声明配置: resources/META-INF/native-image/resource-config.json ... { "pattern": "static/.*" } ... 支持通配符,如果是全名匹配: 则: ..
阅读全文
posted @ 2025-06-01 12:28 漠孤烟
阅读(43)
评论(0)
推荐(0)
2025年5月27日
通过agent构建生成GraalVM需要的reflect-config.json
摘要: Maven项目里添加plugin <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifactId> <version>0.9.28</version> <configurat
阅读全文
posted @ 2025-05-27 07:28 漠孤烟
阅读(147)
评论(0)
推荐(0)
2025年4月14日
使用maven构建native image时,列出所有参数
摘要: native-maven-plugin列出所有构建相关参数 -H:PrintFlags=是查询所有构建时可配置的参数 <plugin> <groupId>org.graalvm.buildtools</groupId> <artifactId>native-maven-plugin</artifac
阅读全文
posted @ 2025-04-14 22:40 漠孤烟
阅读(231)
评论(0)
推荐(0)
2025年4月6日
通过writeReplace+lambda来获取java bean对象的属性名并支持graalvm编译后运行
摘要: 对于GraalVM Native Image编译后的Lambda序列化问题,我们需要采用不同的策略。以下是几种解决方案: 使用注解处理器在编译时生成元数据: // 定义注解 @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD)
阅读全文
posted @ 2025-04-06 19:44 漠孤烟
阅读(67)
评论(0)
推荐(0)
2025年3月30日
某办公软件不登录的情况不能使用编辑工具栏的解决办法
摘要: 1、注册表 cmd,输入regedit 2、依次展开 HKEY_CURRENT_USER\Software\kingsoft\Office\6.0\plugins\officespace\flogin 3、修改 enableForceLoginForFirstInstallDevice 修改为fal
阅读全文
posted @ 2025-03-30 10:22 漠孤烟
阅读(126)
评论(0)
推荐(0)
1
2
3
4
5
···
13
下一页
公告