--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