Grade the building conventions of the Web Convention

Source: Internet
Author: User
Tags log4j

--2015.09.24

When building a web App using Gradle:

The directory structure is as follows (eg):

Src/main/java/bla ...

Src/main/resources/log4j.xml

Src/main/resources/schema.sql

Src/main/webapp/resource/x.css

src/main/webapp/web-inf/view/xxx.jsp

Src/main/webapp/web-inf/spring/zz.xml

After building

src/main/java/Bla.java

Web-inf/classes/bal.class

Src/main/resources/log4j.xml

Web-inf/classes/log4j.xml

Src/main/resources/schema.sql

Web-inf/classes/schema.sql

Src/main/webapp/resource/x.css

App/resource/x.css

src/main/webapp/web-inf/view/xxx.jsp

app/web-inf/view/xxx.jsp

Src/main/webapp/web-inf/spring/zz.xml

App/web-inf/spring/zz.xml

Conclude:

src/main/java/after the class is compiled into the web-inf/classes/class path

Resource files under src/main/resource/(configuration, SQL, etc.) enter the web-inf/classes/classpath, (may provide resource access under Clcaspath)

The files under src/main/webapp/are all moved to the app's path, as the app's root directory.

Grade the building conventions of the Web Convention

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.