Skip to content

Commit

Permalink
Add support for mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
phavekes committed May 13, 2024
1 parent 6dc55b3 commit fd45ab2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
<version>42.6.1</version>
<scope>runtime</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
<dependency>
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>3.3.3</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
Expand Down
7 changes: 7 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,19 @@ spring:
dialect: org.hibernate.dialect.H2Dialect
open-in-view: false
datasource:
## Default filebased storage
driver-class-name: org.h2.Driver
url: jdbc:h2:file:./database/student-mobility
## For Postgress use :
# driver-class-name: org.postgresql.Driver
# url: jdbc:postgresql://localhost:5432/mobility
# username: mobility_rw
# password: secret
## For mariadb use :
# driver-class-name: org.mariadb.jdbc.Driver
# url: jdbc:mariadb://localhost:3306/mobility
# username: mobility_rw
# password: secret
flyway:
locations: classpath:db/{vendor}/migration

Expand Down

0 comments on commit fd45ab2

Please sign in to comment.