title: spring code config addResourceLocations on disk
body: <p>I'm saving files to a temp directory located outside of my project and I need to be able to link to them after I save them. </p>
  
  <p>I tried adding a resource Handler </p>
  
  <pre><code>registry.addResourceHandler("/photo/**").addResourceLocations("D://photo//");
  </code></pre>
  
  <p>but it doesn't seem like spring understands that the file isn't on the classpath</p>
  
  <pre><code>21:58:48.293 [http-nio-8080-exec-14] DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Mapping [/photo/a.png] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/D://photo//]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@782ce27b]]] and 1 interceptor
  </code></pre>
  
  <p>is there a prefix or something I'm missing?</p>
  
  <p>Thanks!</p>