Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource not available for CSS and JS #11

Open
rokkam opened this issue May 24, 2017 · 0 comments
Open

Resource not available for CSS and JS #11

rokkam opened this issue May 24, 2017 · 0 comments

Comments

@rokkam
Copy link

rokkam commented May 24, 2017

Bootstrap is not working for me.

The browser is trying to find the css at - not sure if this is right
http://localhost:8080/sample/person/webjars/bootstrap/3.3.6/css/bootstrap.min.css

Project Name: sample
tried a bunch of things including restarts, updating maven,...

In DispatcherServlet.xml
<mvc:resources mapping="/webjars/**" location="/webjars/" />

PersonController.java has
@RequestMapping(value = "/person/searchPerson", method=RequestMethod.GET)
public ModelAndView searchPerson() {
ModelAndView mv = new ModelAndView("/person/searchPerson","person", new Person());
return mv;
}

in JSP

in pom.xml

	<!-- bootstrap -->
	<dependency>
	    <groupId>org.webjars</groupId>
	    <artifactId>bootstrap</artifactId>
	    <version>3.3.6</version>
	</dependency>
	
	<!-- jquery -->
	<dependency>
	    <groupId>org.webjars.bower</groupId>
	    <artifactId>jquery</artifactId>
	    <version>1.9.1</version>
	</dependency> 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant