SyntaxFix
Write A Post
Hire A Developer
Questions
Another more efficient way to do is just use @Value
@Value("classpath:sss.json") private Resource resource;
and after that you can just get the file this way
File file = resource.getFile();