title: images not accessible by Vaadin Spring Application
body: <p>In the example given here:</p>
  
  <p><a href="https://vaadin.com/docs/framework/application/application-resources.html" rel="noreferrer">https://vaadin.com/docs/framework/application/application-resources.html</a></p>
  
  <p>the images-folder is put inside the WEB-INF directory of the application.</p>
  
  <p>In my Vaadin Spring application, I do not have a WEB-INF directory, so I put the images folder inside the "resources" folder instead. Here is what the folder structure inside of "src/main/resources" and inside of "target" looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/5kuUx.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5kuUx.png" alt="enter image description here"></a></p>
  
  <p>The problem is that my application cannot access the images there. I always get the same "File not found" exception. </p>
  
  <p>I tried out different path descriptions, among others, the following:</p>
  
  <pre><code>VaadinService.getCurrent().getBaseDirectory().getAbsolutePath() + "images/pic.png"
  
  VaadinService.getCurrent().getBaseDirectory().getAbsolutePath() + "/classes/images/pic.png"
  
  VaadinService.getCurrent().getBaseDirectory().getAbsolutePath() + "/target/classes/images/pic.png"
  
  VaadinService.getCurrent().getBaseDirectory().getAbsolutePath() + "/applicationName/target/classes/images/pic.png"
  </code></pre>
  
  <p>... nothing worked !!</p>
  
  <p>How can I make this images accessible to my Vaadin Spring application?</p>