I am switching to use Maven for my Spring web app projects and I am running into a simple issue. I am not sure where to put the CSS and JS files in the new project structure
I was faced with the same question in a maven project. There seems to be no good answer to my problem. So I did a simple experiment and it worked perfectly.
This is a simple maven project, I have the following directory structure: (Irrelevant directories are not shown)
───src └───main ├───java ├───resources └───webapp ├───javascript │ ├───test.js │ ├───example.js │ └───jquery-library.js ├───WEB-INF │ └───web.xml └───example.jsp
My JSP pages can refer to my javascript libraries simply as
There is no need for any special configuration.