I have to download some files from other website while using Spring Boot, and i use
FileOutputStream out = (new FileOutputStream(new java.io.File(
"src/main/resources/static/img/" + filename)));
But after compilation, the file structure has been changed. And the application won't run normally, so I thought this is not a correct way to save files. Any suggestion?