Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the diff btween src/main/resources and src/main/webapp/resources?

I have a Spring MVC 3.0 project, using Maven, generated right from Eclipse's New -> Project -> Spring Project -> Spring MVC Project. However, I see two resources folders, one directly under src/main and another one level deeper under src/main/webapp. I guess this is a two part question.:

(a) Under which of the two should my static content (css, js, and imgs) go? and

(b) What, then, is supposed to go under the other one?

like image 399
David Neuschulz Avatar asked Aug 02 '14 19:08

David Neuschulz


1 Answers

  • (a) In the webapp
  • (b) Your java resource files you need to access from the classpath
like image 115
Paul Samsotha Avatar answered Oct 19 '22 01:10

Paul Samsotha