This is a basic Java web application template structure for easily bootstrapping web development projects. This template uses the following foundational technologies:
Gradle
for build systemSpring MVC
framework with@MVC
annotationsJSTL
withApache Tiles
view templating frameworkSpring Security
framework with basicApereo CAS
provider configured out of the boxTwitter Bootstrap
CSS frameworkLogback
framework for logging
This app's config assumes that you have an Apereo CAS server running somewhere.
-
Clone the repo, cd into the root of the project and copy files from
etc
directory (cas.properties
,logback.xml
) to/etc/templateapp
directory -
Set appropriate values for your CAS server in
/etc/templateapp/cas.properties
-
Build by running
./gradlew
(orgradlew.bat
if on Windows). The resulting war file is then available for deployment inbuild/libs
- Clone the repo, cd into the root of project and delete the git repository e.g.
rm -rf .git
(so that you could create your own) - Modify project name in
settings.gradle
- Modify group, description, version, etc. properties in the
build.gradle
. Also adjust the dependecies appropriate to your project - Change
contextName
inetc/logback.xml
appropreate for your app - Change references to the config directory (currently
/etc/templateapp
) appropriate for your project. These references are in the following files: (WEB-INF/spring/root-context.xml
,src/main/resources/logback.xml
) - Change
context-component-scan base-package
as appropriate for your app inWEB-INF/dispatcher-servlet.xml
- And of course change/add java packages, add classes and add/change views as appropreate for your app, etc.
Happy hacking!