this worked,
registry.addResourceHandler("/resources/**").addResourceLocations("/resources/");
and in the jsp files I referred to the static resources like
<link href="https://stackoverflow.com/questions/25061237/resources/css/bootstrap.css" rel="stylesheet" media="screen">
More Related Contents:
- How to return JSON data from spring Controller using @ResponseBody
- What does the @Valid annotation indicate in Spring?
- What causes “java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name ‘command’ available as request attribute”?
- @RequestParam vs @PathVariable
- Spring Security : Multiple HTTP Config not working
- Redirect to an external URL from controller action in Spring MVC
- Difference between @Valid and @Validated in Spring
- How to customise the Jackson JSON mapper implicitly used by Spring Boot?
- Spring Boot Multiple Datasource
- How to respond with an HTTP 400 error in a Spring MVC @ResponseBody method returning String
- Increase HTTP Post maxPostSize in Spring Boot
- Difference between Role and GrantedAuthority in Spring Security
- Spring MVC type conversion : PropertyEditor or Converter?
- RESTful Authentication via Spring
- Autowiring two beans implementing same interface – how to set default bean to autowire?
- Spring Boot with redirecting with single page angular2
- why do we have to use @Modifying annotation for queries in Data Jpa
- How do I obtain the Jackson ObjectMapper in use by Spring 4.1?
- Spring webSecurity.ignoring() doesn’t ignore custom filter
- Annotation Configuration Replacement for mvc:resources – Spring
- Spring MVC – AngularJS – File Upload – org.apache.commons.fileupload.FileUploadException
- UnsatisfiedDependencyException: Error creating bean with name
- Configure ViewResolver with Spring Boot and annotations gives No mapping found for HTTP request with URI error
- Is it possible to have empty RequestParam values use the defaultValue?
- how to send an array in url request
- Spring 3.0 making JSON response using jackson message converter
- How can I @Autowire a spring bean that was created from an external jar?
- java.lang.IllegalStateException: No thread-bound request found, exception in aspect
- Using @RequestParam for multipartfile is a right way?
- exception loading sessions from persistent storage