a MAVEN Web Project Project catalog:The directory hierarchy in the Explorer is as follows: After exporting to the war package, the directory hierarchy is: We will find that there is no such directory hierarchy as follows: So these two directory levels are just added by the IDE for us, easy to program.
Java ResourceDirectory is
Source Folder, the resources under the directory are packaged into:
web-inf/classesFolder.Note:You will find in
Java ResourceUnder the folder that is created under the
jsp,htmlAnd so on, the Web files will be automatically placed
Src/main/webappfolder, because here the default
Content DirectoryDirectory is
Src/main/webapp, the IDE places the Web page's files into this
Content DirectoryDirectory. In
Dynamic Web ProjectIn
Content DirectoryThe default directory is:
webcontent
WarThe file structure in the package is derived from
Deployed Resources. and
Java ResourceAnd
Deployed ResourcesThe files in the file are all derived from: So these folders are actually the same piece of paper, so when our CRU operations are interconnected. It is important to note that:
Meta-infAnd
Web-infIs
Java Webis generated by default, and is placed inside the
jsp,htmlAnd so on, Web pages are not accessible through the browser directly. 2016-01-06 20:51:16
MAVEN Web project packaged as a war package, changes in directory structure