标签: java spring-boot
我在使用Spring Boot时必须从其他网站下载一些文件,我使用
FileOutputStream out = (new FileOutputStream(new java.io.File( "src/main/resources/static/img/" + filename)));
但是在编译之后,文件结构已经改变了。应用程序不能正常运行,所以我认为这不是保存文件的正确方法。 有什么建议吗?