Giter Club home page Giter Club logo

spring-mvc-template's Introduction

spring-mvc-template

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 system
  • Spring MVC framework with @MVC annotations
  • JSTL with Apache Tiles view templating framework
  • Spring Security framework with basic Apereo CAS provider configured out of the box
  • Twitter Bootstrap CSS framework
  • Logback framework for logging

Configuration

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 (or gradlew.bat if on Windows). The resulting war file is then available for deployment in build/libs

Adopt for your project development

  • 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 in etc/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 in WEB-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!

spring-mvc-template's People

Contributors

dima767 avatar wgthom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.