Browse Source

Init SQL support

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.1-alpha
Pekka Helenius 4 years ago
parent
commit
0b4f4773d0
2 changed files with 17 additions and 0 deletions
  1. +11
    -0
      bookstore/pom.xml
  2. +6
    -0
      bookstore/src/main/resources/application.properties

+ 11
- 0
bookstore/pom.xml View File

@ -41,6 +41,17 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
</dependency>
</dependencies> </dependencies>
<build> <build>


+ 6
- 0
bookstore/src/main/resources/application.properties View File

@ -3,6 +3,12 @@
# #
server.port=8080 server.port=8080
spring.h2.console.enabled=true
spring.h2.console.path=/h2-console
spring.datasource.url=jdbc:h2:mem:testdb
spring.jpa.show-sql=true
# Ref: https://docs.spring.io/spring-boot/docs/1.2.0.M2/reference/html/common-application-properties.html # Ref: https://docs.spring.io/spring-boot/docs/1.2.0.M2/reference/html/common-application-properties.html
# # EMBEDDED SERVER CONFIGURATION (ServerProperties) # # EMBEDDED SERVER CONFIGURATION (ServerProperties)


Loading…
Cancel
Save