Java Spring MVC Folder / Naming Conventions

I am trying to determine the best way to organize our Maven / Spring web applications and looked around to see examples. Unfortunately, they seem to conflict at certain points.

How should folders be organized in a Spring MVC web application and what should they be called?

The big differences that I see are as follows:

  • Folder for JSP.
    • / src / main / webapp / WEB-INF / jsp / or
    • / Src / home / web application / WEB-INF / view /
  • Spring configuration files.
    • /src/main/resources/META-INF/spring/context.xml or
    • /src/main/resources/spring/context.xml or
    • /SRC/Home/WebApp/WEB-INF/spring/context.xml
  • If assets / resources belong.
    • / src / main / webapp / WEB-INF / images / or
    • / src / main / webapp / resources / images / (with urlrewriter)

SpringSource SVN , MVC :

  • /SRC///META-INF/spring/
  • /SRC//-//
  • /SRC//-/WEB-INF//

, , , , , , . , , Spring .

.

P.S. , , - , : " jsp". , , .

+3
1

:

  • JSP.

      * /src/main/webapp/WEB-INF/jsp/
    
  • Spring.

      * /src/main/resources/context.xml
    
  • / .

      * /src/main/webapp/WEB-INF/images/
    

. , .

0

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