From 178ae865df2683c7280a55e109ddd91ee2a9f0ca Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Wed, 24 Jun 2020 10:32:39 +0700 Subject: [PATCH] Updated and remove files --- .gitignore | 3 +++ src/main/resources/application-mysql.yml.example | 12 ++++++++++++ src/main/resources/application-postgres.yml.example | 12 ++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 src/main/resources/application-mysql.yml.example create mode 100644 src/main/resources/application-postgres.yml.example diff --git a/.gitignore b/.gitignore index 6c01878..3c4538d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ build/ !**/src/main/** !**/src/test/** +application-mysql.yml +application-postgres.yml + ### STS ### .apt_generated .classpath diff --git a/src/main/resources/application-mysql.yml.example b/src/main/resources/application-mysql.yml.example new file mode 100644 index 0000000..9a48056 --- /dev/null +++ b/src/main/resources/application-mysql.yml.example @@ -0,0 +1,12 @@ +server: + port: 8081 + +spring: + jpa: + hibernate: + ddl-auto: update + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + url: jdbc:mysql://192.168.0.150:3306/demo \ No newline at end of file diff --git a/src/main/resources/application-postgres.yml.example b/src/main/resources/application-postgres.yml.example new file mode 100644 index 0000000..b1621d1 --- /dev/null +++ b/src/main/resources/application-postgres.yml.example @@ -0,0 +1,12 @@ +server: + port: 8081 + +spring: + jpa: + hibernate: + ddl-auto: update + datasource: + driver-class-name: org.postgresql.Driver + username: root + password: root + url: jdbc:postgresql://${POSTGRES_HOST:192.168.0.150}:5432/demo \ No newline at end of file