I would like to ask you how can I add properly jQuery library to the Spring MVC project. In src/webapp directory I have resources folder. I have created inside js directory. And then I have pasted downloaded jQuery library. But Eclipse have found a few errors and now I can’t run my project. So what is the way to add and use properly jQuery library in Spring MVC project? Maybe using Maven add some dependencies in POM.xml?
I have founded this question How to include the jQuery library in a Spring-MVC Eclipse project but it haven’t resolved my problem.
Just put that in the head of your jsp page. From here. Or if you want to manually supply your own jquery file add this to app context (and create javascript directory in yr webapp folder obviously):
then in jsp