MAVEN Web project packaged as a war package, changes in directory structure

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.