title: access static html page from jar file using spring
body: <p>I want to call home.html file present in jar under /WEB-INF/lib using spring.</p>
  
  <p>Below is configuration class</p>
  
  <pre><code>@Configuration
  @ComponentScan("com.barclays.mobile.gateway.controller")
  @EnableWebMvc
  public class MvcConfig extends WebMvcConfigurerAdapter{
  
  @Bean(name = "viewResolver")
  public InternalResourceViewResolver getViewResolver() {
      InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
      viewResolver.setPrefix("/WEB-INF/");
      viewResolver.setSuffix(".html");
      return viewResolver;
  }
  
  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/component/**").addResourceLocations("classpath:/app/component/*");
     registry.addResourceHandler("/assets/**").addResourceLocations("classpath:/app/assets/*");
     registry.addResourceHandler("/home/**").addResourceLocations("classpath:/app/*");
  }
  
  }
  </code></pre>
  
  <p>Below is controller:</p>
  
  <pre><code>@Controller
  public class StaffController {
  
  @RequestMapping(value = "/home", method = RequestMethod.GET)
  public String home() {
      return "home";
  }
  }
  </code></pre>
  
  <p>Please suggest how to do this.?</p>