title: Spring save uploaded file as public resource
body: <p>What is the general approach to storing public images on file system?
  I have an <code>endpoint</code> on the server to save the file. But what I do not understand is how to make it publicly accessible so that I do not have to create endpoint for these public files(I think it would be unnecessary overhead)? Do I need to add some separate file server? 
  My web app architecture is:</p>
  
  <pre><code>Angular.js client
       |
  Node.js client server
       |
  Spring backend on separate server
  </code></pre>
  
  <p>What I want to achieve is something like</p>
  
  <pre><code>&lt;img src="localhost:8000/public/images/myImage"/&gt;
  </code></pre>
  
  <p>I came to <a href="https://stackoverflow.com/a/25762201/2764414">this</a> answer, but is making endpoint really the right way to go?</p>