搜索
提交
工作笔记
默认
Java
SpringBoot
JVM
Netty
Linux
运维
服务器
Nginx
数据库
MySQL
前端
echart
数据结构
AI
Class.getResource("/")与Class.getResource("")
Java
|
2024-04-08
|
ZH
|
阅读(3,511)
getResource("/")返回项目classes目录,
返回
protocol=file
getResource("")返回当前类所在的目录,有可能是jar内部目录如 file:/D:/jar/maven/org/anyline/anyline-core/8.7.2-SNAPSHOT/anyline-core-8.7.2-SNAPSHOT.jar!/org/anyline/util/ 返回protocol=jar
Java配置日志级别
返回一个包含一个package的所有目录
最新
截至 2025 年 6 月 30 日OSSRH(oss.sonatype.org)到期并已关闭
华为服务器风扇转速调整
鼠标微动开关坏了
文件或目录损坏且无法读取
Docker安装Vespa
windows 11初始化设置
npm install electron执行慢
docker部署Weaviate
docker部署milvus
IDEA测试时run可以执行,debug执行不了
整合RAGFlow、Dify、Ollama、DeepSeek
ubuntu部署ollama
ubuntu查看版本号
centos8 yum dnf配置
centos部署ollama
docker快速部署opengauss
Windows文件在CentOS中的格式转换问题
文件上传
docker 部署oceanbase
electron创建应用