How to include the jQuery library in a Spring-MVC Eclipse project

前端 未结 7 1244
感动是毒
感动是毒 2020-12-31 14:58

Good day,

I have searched far and wide but all I can find is information about how to add various plugins to Eclipse. I don\'t want a plugin. I want my stinkin\' jQu

7条回答
  •  抹茶落季
    2020-12-31 15:22

    I think you need to locate the file NOT under the WEB-INF directory, as anything there is not visible to the HTML resulting from your JSP. Try putting your js directory directly under WebContent and changing your reference in the tag accordingly.

    EDIT: In response to the comment you left under Jay's answer. How are you referencing the file in your script tag?

    You will probably want something like:

     
    

    where web-context-root is specific to your application and assuming you put your js directory directly under WebContent.

提交回复
热议问题