更正 以src开始,就能用相对路径了... shift+ctrl+alt+s 调出项目结构, 在Modules里,就是设置 Sources Resources Test的界面, 右面的路径就是相对路径的写法 如src/main/resources/xxx.jpg 以下是存档 太傻了 曲线救国 不如直接用反射 =========================================== 系统环境 IDEA 2018.3 JDK11 WIN10 问题描述 从eclipse换到了IDEA后,…