What is the difference between src / main / resources and src / main / webapp / resources?

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

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

(b) What then must go under another?

+6
source share
1 answer
  • (a) In webapp
  • (b) Your java resource files needed to access from the class path
+6
source

Source: https://habr.com/ru/post/973265/


All Articles