Skip to content

Commit

Permalink
Merge pull request #630 from nitram509/add-db-spring-profiles
Browse files Browse the repository at this point in the history
add spring profiles mysql, and postgres for convenience and manual testing
  • Loading branch information
nitram509 authored Nov 25, 2023
2 parents 272d46f + 402e654 commit 7791f42
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/resources/application-mysql.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# for convenience and manual testing purpose

spring:
datasource:
url: jdbc:mysql://localhost:3306/zeebe_simple_monitor
username: root
password: secret
driverClassName: com.mysql.cj.jdbc.Driver

jpa:
database-platform: org.hibernate.dialect.MySQLDialect
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl

server:
port: 18082
14 changes: 14 additions & 0 deletions src/main/resources/application-postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# for convenience and manual testing purpose

spring:
datasource:
url: jdbc:postgresql://localhost:5432/postgres
username: postgres
password: mysecretpassword
driverClassName: org.postgresql.Driver

jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect

server:
port: 18082

0 comments on commit 7791f42

Please sign in to comment.