title: How to add directory and subdirectories in static location in spring boot
body: <p>I want to use resources from static directory and this directory may have another subdirectories.  </p>
  
  <p>In spring boot application.properties file I am using below key to refer outside directory:C:/custResources/. I am able to refer resources from this directory but not from the subdirectoriese e.g. C:/custResources/1, C:/custResources/2 etc.</p>
  
  <p><code>
  spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:/C:/custResources/
  </code></p>