Answers for "how to create static folder in spring boot to store files"

0

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();
Posted by: Guest on December-05-2020
0

how to register a static assets folder spring boot

spring.resources.static-locations=classpath:/files/,classpath:/static-files
Posted by: Guest on October-19-2020

Code answers related to "how to create static folder in spring boot to store files"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language