Motang / webside

A simple J2EE framework with SpringMVC + Mybatis + Shiro + Druid + Ehcache + H2/MySQL + Hessian

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webside

A simple web site with SpringMVC + Mybatis + Shiro + Druid + Ehcache frameworks, it is a J2EE project named 'webside', provide HTTP and Hessian interface to clients.

Preparation

  1. Above JDK1.6 install
  2. Above Maven 3.0.5, Private repository with Nexus is more better in Company
  3. Eclipse Java EE IDE with Git and Checkstyle plugins, 'Kepler' version is more better.
  4. MySQL install (No mandatory requirement, maybe replace with H2 or HSQLDB)

User Guide

  1. generate a Eclipse project with the following MAVEN script in CMD or SHELL window

mvn eclipse:eclipse

  1. run project in Tomcat

mvn tomcat:run -Dmaven.test.skip=true

  1. enter the following URL in browser with username/password(zhang/123) to login

http://localhost:8080/webside/index

For Test

  1. Unit Test, enter the following command

mvn test

  1. Integration Test, enter the following command

mvn integration-test

  1. Sourcecode check, enter the following command, see the results in target/checkstyle-result.xml

mvn checkstyle:checkstyle

Introduction

Here introduces some very important configuration files to integrate SpringMVC、MyBatis、Shiro、Ehcache(such as web.xml, Spring configuration, SpringMVC configuration)

Guide to web.xml

src/main/webapp/WEB-INF/web.xml contains: Spring context configuration, Shiro configuration, Charset encode filter, Durid configuration, Hessian configuration, SpringMVC configuration

Guide to Spring configuration files:

spring-config.xml, spring-dao.xml, spring-common.xml, spring-shiro.xml

Guide to Spring MVC configuration file:

spring-mvc.xml

About

A simple J2EE framework with SpringMVC + Mybatis + Shiro + Druid + Ehcache + H2/MySQL + Hessian

License:Apache License 2.0


Languages

Language:JavaScript 74.4%Language:CSS 22.4%Language:Java 3.2%