Skip to content

Commit 0256ae8

Browse files
committed
Small changes to demo
1 parent f7309c0 commit 0256ae8

4 files changed

Lines changed: 33 additions & 0 deletions

File tree

demo/application.properties

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This is a sample application.properties file
2+
# WARNING! It uses the H2 in-memory database, so all data will be lost when you restart the application
3+
4+
spring.datasource.url=jdbc:h2:mem:AZ;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
5+
spring.datasource.driverClassName=org.h2.Driver
6+
spring.datasource.username=sa
7+
spring.datasource.password=
8+
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
9+
10+
# Example using a PostgreSQL database
11+
# spring.datasource.url=jdbc:postgresql://pg_edi/edi
12+
# spring.datasource.username=postgres
13+
# spring.datasource.password=ritmare2013
14+
# spring.datasource.driverClassName=org.postgresql.Driver
15+
# spring.datasource.testOnBorrow=true
16+
# spring.datasource.validationQuery=SELECT 1
17+
# spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
18+
19+
spring.jpa.properties.hibernate.globally_quoted_identifiers=true
20+
spring.jpa.hibernate.naming-strategy=org.hibernate.cfg.EJB3NamingStrategy
21+
spring.jpa.hibernate.ddl-auto=update
22+
23+
spring.data.rest.baseUri=edi
24+
spring.data.rest.base-uri=edi
25+
26+
server.port=8080

demo/create_demo.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
cd ../EDI-T
4+
mvn clean package && cp target/EDI-T-0.0.1-SNAPSHOT.jar ../demo/edi.jar && cd ../demo && ./edi.sh
Binary file not shown.

demo/edi.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
java -Dspring.config.location=. -jar edi.jar

0 commit comments

Comments
 (0)