1、java项目springboot中,在本地读取源文件没有问题; 2、发布到服务器就找不到文件了 3、在idea中没有问题 this.getClass().getResource("/simkai.ttf").openStream() 相关文章: