Springboot: controller access files through Resource Interface

Access files through classpath.

Springboot will  scan /META-INF/resources/; /resources/; /static/ and/public/ folders when you tell it find something in the “Classpath”. 

Using Resource interface to instantiate an ClassPathResource.