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