spring boot load a file

htt‮//:sp‬www.lautturi.com
spring boot load a file
File resource = new ClassPathResource("test.json").getFile();
String text = new String(Files.readAllBytes(resource.toPath()));
Created Time:2017-10-03 17:58:17  Author:lautturi