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

前端 未结 7 1228
感动是毒
感动是毒 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:24

    You could try using a separate servlet (which I have actually not tried yet) to load up the jQuery.js as static content.

    What solved it for me, is putting the jQuery.js file in the /content folder with the rest of html pages, and referencing it relative to root directory for both jsp and html pages.

提交回复
热议问题