- [REST With Spring] (http://bit.ly/restwithspring)
git clone https://github.com/eugenp/REST-With-Spring.git
cd REST-With-Spring
mvn clean install
mvn cargo:run -f um-webapp/pom.xml
By default, the project uses the H2 in-memory DB and - persistence-h2.properties
.
If you want to switch to - for example - MySQL - you'll need to specify a different property on startup:
persistenceTarget=h2
And of course, if you are going to use MySQL, you'llneed to run a MySQL instance locally and you'll need to either change the default credentials here, or create the following user/password in your local installation
The project uses the following technologies:
- web/REST: Spring 4.2.x
- marshalling: Jackson 2.x (for JSON) and the new Jackson XML extension (for XML)
- persistence: Spring Data JPA and Hibernate
- persistence providers: H2, MySQL
- testing: junit, hamcrest, mockito, rest-assured
- see the Eclipse wiki page of this project