Ejemplo n.º 1
0
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   super.addResourceHandlers(registry);
   registry.addResourceHandler("/webapp/**").addResourceLocations("/webapp/");
   registry.addResourceHandler("/webapp/styles/**").addResourceLocations("/webapp/styles/");
   registry.addResourceHandler("/webapp/dist/**").addResourceLocations("/webapp/dist/");
   registry
       .addResourceHandler("/webapp/jspm_packages/**")
       .addResourceLocations("/webapp/jspm_packages/");
 }
  @Override
  public void addResourceHandlers(ResourceHandlerRegistry registry) {
    if (!registry.hasMappingForPattern("/webjars/**")) {
      registry
          .addResourceHandler("/webjars/**")
          .addResourceLocations("classpath:/META-INF/resources/webjars/");
    }

    if (!registry.hasMappingForPattern("/**")) {
      registry.addResourceHandler("/**").addResourceLocations(RESOURCE_LOCATIONS);
    }
  }
Ejemplo n.º 3
0
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
 }
Ejemplo n.º 4
0
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   registry.addResourceHandler("/static/js/**").addResourceLocations("/WEB-INF/static/js/");
 }
Ejemplo n.º 5
0
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   // Static ressources
   registry.addResourceHandler("/static/**").addResourceLocations("WEB-INF/static/posterapp/");
 }
Ejemplo n.º 6
0
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   registry.addResourceHandler("*/WEB-INF/views/**").addResourceLocations("/views/");
   registry.addResourceHandler("*/resources/css/**").addResourceLocations("/css/");
   registry.addResourceHandler("*/resources/images/**").addResourceLocations("/images/");
 }