Ejemplo n.º 1
0
 @Override
 public void addResourceHandlers(final ResourceHandlerRegistry registry) {
   super.addResourceHandlers(registry);
   System.out.println("Reading here");
   registry.addResourceHandler("/index.jsp").addResourceLocations("/WEB-INF/views/index.html");
   registry.addResourceHandler("/css/**").addResourceLocations("/WEB-INF/css/");
   registry.addResourceHandler("/images/**").addResourceLocations("/WEB-INF/images/");
   registry.addResourceHandler("/js/**").addResourceLocations("/WEB-INF/js/");
 }
Ejemplo n.º 2
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/");
 }
 /** Add our static resources folder mapping. */
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   //
   registry.addResourceHandler("/**").addResourceLocations(CLASSPATH_RESOURCE_LOCATIONS);
   //
   // Activiti repository resources(diagram picture,process BPM files).
   // registry.addResourceHandler("/repository/**").addResourceLocations("classpath:/repository/");
   // Jasper report
   registry.addResourceHandler("/static/**").addResourceLocations("classpath:/static/");
   // registry.addResourceHandler("/reports/**").addResourceLocations("classpath:/reports/");
   //
   super.addResourceHandlers(registry);
 }
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   registry.addResourceHandler("/js/**").addResourceLocations("classpath:/js/");
   registry.addResourceHandler("/css/**").addResourceLocations("classpath:/css/");
   super.addResourceHandlers(registry);
 }
 @Override
 public void addResourceHandlers(ResourceHandlerRegistry registry) {
   super.addResourceHandlers(registry);
 }