title: Spring boot not loading images from src/main/resources path into jsp
body: <p>I have a image file inside</p>
  
  <p><a href="https://i.stack.imgur.com/38zDn.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>Here is my configuration inside Configuration class.</p>
  
  <pre><code>private static final String[] CLASSPATH_RESOURCE_LOCATIONS = {
          "classpath:/META-INF/resources/", "classpath:/resources/**",
          "classpath:/static/**", "classpath:/public/" };
  
  
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
      registry.addResourceHandler("/**").addResourceLocations(CLASSPATH_RESOURCE_LOCATIONS);
  </code></pre>
  
  <p>Inside Jsp I am not able to load the image under div tag</p>
  
  <pre><code>&lt;div id="image"&gt;
          &lt;p&gt;
              &lt;img src="/images/reviewCount.jpg" width="600" height="400" border="0" usemap="#chart"&gt;
          &lt;/p&gt;
  </code></pre>
  
  <p>I tried </p>
  
  <p>1) To give absolute path like src/main/resources/static/images/reviewCount.jpg </p>
  
  <p>2) <code>src="{/images}/reviewCount.jpg"</code> </p>
  
  <p>Both the approaches went in a wine.</p>
  
  <p>Any one who can some  shed light would be appreciated.</p>
  
  <p>TIA.</p>
  
  <p>regards
  Vinod</p>