Skip to content

Commit

Permalink
VUU25: Add basic H2 database
Browse files Browse the repository at this point in the history
  • Loading branch information
cfisher-scottlogic committed Sep 22, 2023
1 parent d444cad commit 2bb9c0a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
17 changes: 13 additions & 4 deletions layout-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,22 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
Expand Down
8 changes: 7 additions & 1 deletion layout-server/src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@

spring.datasource.url=jdbc:h2:file:/data/layout
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
server.port=8081

0 comments on commit 2bb9c0a

Please sign in to comment.