Giter VIP home page Giter VIP logo

spring-mvc3-javaconfig's Introduction

Spring @MVC 3.1 Java config

This is a simple example that uses Spring's Java configuration instead of XML. This example is explained in my blog post.

This is a fake login app. In real life you'd probably use Spring Security instead.

There is a service and data access layer, but the repository is just a hard coded stub. It would be simple to modify this to use Spring Data. (See next blog...)

The JSP pages are written in HTML5. The pages use [Twitter Bootstrap] (http://twitter.github.com/bootstrap/) for layout and CSS styling. Take a look at the login form and you won't see the typical table tags used for layout. For compatibility with older browsers, Modernizr is used.

This project also uses the Servlet 3.0 ability to replace web.xml

Maven

The pom.xml requires Maven 3. Some dependencies/plugins aren't needed in this project (e.g. the persistence libraries) but are there for easy migration.

You can run the project with Jetty. The Tomcat 7 plugin is a bit flaky, but the "real" Tomcat 7 works fine.

mvn jetty:run

The site plugin with several reporting plugins is also configured. Take a look at src/site.

mvn site

Resources

spring-mvc3-javaconfig's People

Contributors

genedelisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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