/springMvc-jpa-demo

Web App Example Using Spring MVC & Spring Data JPA spring-3.2.4.RELEASE hibernate-4.2.6.Final jpa2 spring-data 1.4.1.RELEASE lazyluke:sql execute log.

Primary LanguageJava

Web App Example Using Spring MVC & Spring Data JPA
spring-3.2.4.RELEASE   hibernate-4.2.6.Final  jpa2  spring-data 1.4.1.RELEASE
lazyluke:sql execute log.
see:https://github.com/making/springmvc-jpa-blank.git

for MySQL(default)

$ mvn clean test -P mysql
$ mvn clean eclipse:clean eclipse:eclipse -P mysql

for PostgreSQL

$ mvn clean test -P postgresql
$ mvn clean eclipse:clean eclipse:eclipse -P postgresql

for H2

$ mvn clean test -P h2
$ mvn clean eclipse:clean eclipse:eclipse -P h2

for HSQLDB

$ mvn clean test -P hsqldb
$ mvn clean eclipse:clean eclipse:eclipse -P hsqldb

tested only on Tomcat7 (not use JTA)

$ mvn clean tomcat7:run -P h2
access http://localhost:8080/springmvc-jpa

please alert src\main\databases\$DATABASE\META-INF\spring\database.properties
then run test