@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); } }
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**").addResourceLocations("/resources/"); }
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/static/js/**").addResourceLocations("/WEB-INF/static/js/"); }
@Override public void addResourceHandlers(ResourceHandlerRegistry registry) { // Static ressources registry.addResourceHandler("/static/**").addResourceLocations("WEB-INF/static/posterapp/"); }
@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/"); }