Skip to content

Commit

Permalink
adding mysql datasource configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Hardik Singh Behl authored and Hardik Singh Behl committed Sep 28, 2023
1 parent 6ecff56 commit 6d7c890
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
5 changes: 2 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,8 @@
<version>${mapstruct.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
<groupId>com.mysql</groupId>
<artifactId>mysql-connector-j</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
Expand Down
11 changes: 5 additions & 6 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ spring:
application:
name: cerberus
datasource:
driverClassName: org.h2.Driver
password: cerberus
username: cerberus
url: jdbc:h2:mem:cerberus
url: ${MYSQL_URL}
username: ${MYSQL_USERNAME}
password: ${MYSQL_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver
jpa:
hibernate:
ddl-auto: create-drop
database-platform: org.hibernate.dialect.H2Dialect
ddl-auto: update

com:
behl:
Expand Down

0 comments on commit 6d7c890

Please sign in to comment.