Skip to content

Commit 15f5a9e

Browse files
committed
config test db
1 parent d2ede5b commit 15f5a9e

2 files changed

Lines changed: 22 additions & 5 deletions

File tree

‎spring-security-rest-full/pom.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@
173173
<scope>runtime</scope>
174174
</dependency>
175175

176+
<dependency>
177+
<groupId>com.h2database</groupId>
178+
<artifactId>h2</artifactId>
179+
</dependency>
180+
176181
<!-- web -->
177182

178183
<dependency>
Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
## jdbc.X
2+
#jdbc.driverClassName=com.mysql.jdbc.Driver
3+
#jdbc.url=jdbc:mysql://localhost:3306/spring_hibernate4_01?createDatabaseIfNotExist=true
4+
#jdbc.user=tutorialuser
5+
#jdbc.pass=tutorialmy5ql
6+
#
7+
## hibernate.X
8+
#hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
9+
#hibernate.show_sql=false
10+
#hibernate.hbm2ddl.auto=create-drop
11+
12+
113
# jdbc.X
2-
jdbc.driverClassName=com.mysql.jdbc.Driver
3-
jdbc.url=jdbc:mysql://localhost:3306/spring_hibernate4_01?createDatabaseIfNotExist=true
4-
jdbc.user=tutorialuser
5-
jdbc.pass=tutorialmy5ql
14+
jdbc.driverClassName=org.h2.Driver
15+
jdbc.url=jdbc:h2:mem:security_permission;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
16+
jdbc.user=sa
17+
jdbc.pass=
618

719
# hibernate.X
8-
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
20+
hibernate.dialect=org.hibernate.dialect.H2Dialect
921
hibernate.show_sql=false
1022
hibernate.hbm2ddl.auto=create-drop

0 commit comments

Comments
 (0)