Skip to content

jhrom/spring-web-xml-archetype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring MVC 4 Quickstart Maven Archetype

If this project saved your time, then you can buy me a beer:

[paypal]

Summary

The project is a Maven archetype for Spring MVC 4 web application. This archetype doesn't have any js and css (only configuration for thymeleaf). If you need full blown spring mvc archetype based on Spring JavaConfig, then I strongly encourage you to visit https://github.com/kolorobot/spring-mvc-quickstart-archetype

Main goal

Main goal for me was to create full working server side archetype based on spring, hibernate and thymeleaf. Whole spring configuration is defined in xml files.

To do

  • In next iteration I will add some tests.
  • Improve documentation
  • maybe version for jetty?

What is inside?

  • Spring platform (ioc, web, test, orm, data jpa)
  • javax.servlet-api
  • logback-classic
  • junit
  • mockito
  • hikori
  • thymeleaf
  • hibernate-entitymanager
  • h2

Installation

To install the archetype in your local repository execute following commands:

    git clone https://github.com/jhrom/spring-web-xml-archetype.git
    cd spring-web-xml-archetype
    mvn clean install

Create a project

    mvn archetype:generate \
        -DarchetypeGroupId=com.github.jhrom.archetypes \
        -DarchetypeArtifactId=spring-web-xml-archetype \
        -DarchetypeVersion=5.0.0 \
        -DgroupId=my.groupid \
        -DartifactId=artifactId \
        -Dversion=version \ 
        -DinteractiveMode=false

Run the project

	mvn jetty:run

Check in your browser

http://localhost:8080/

(currently ony index page is available)

About

Spring mvc archetype with JPA (hibernate)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published