GithubHelp home page GithubHelp logo

huagang / webside Goto Github PK

View Code? Open in Web Editor NEW

This project forked from motang/webside

0.0 1.0 0.0 2.97 MB

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

License: Apache License 2.0

Java 3.21% HTML 17.73% CSS 21.97% JavaScript 57.08% Makefile 0.01%

webside's Introduction

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

webside's People

Contributors

motang avatar

Watchers

 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.