I have a Spring Boot Webflux app with:
@Value("classpath:file.json")
private Resource create;
The file is in resources/file.json
, but create
is always coming up null in the debugger.
I have also tried:
new ClassPathLoader("file.json")
through manual loading and its working fine.
Any ideas why @Value can't resolve?