save file to static folder in springboot code example
Example: spring boot save file to static folder
String fileLocation = new File("src\\main\\resources\\static\\uploads").getAbsolutePath() + "\\" + fileName;
FileOutputStream output = new FileOutputStream(fileLocation);
output.write(imagem.getBytes());
output.close();