diff --git a/build.gradle b/build.gradle index 0ff35154a0c45d9ea062cd6b8d2cbc429e3ad3b7..f49a7b810c46a2d9d3b590786ad211edf1aaef78 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,9 @@ repositories { dependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' implementation 'org.springframework.boot:spring-boot-starter-web' + implementation 'org.springframework.boot:spring-boot-starter-jdbc' + //from https://mariadb.com/kb/en/java-connector-using-gradle/ + implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2' compileOnly 'org.projectlombok:lombok' developmentOnly 'org.springframework.boot:spring-boot-devtools' annotationProcessor 'org.projectlombok:lombok' diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 2109a440d84272c41cb90c6e3c87aeab94aebb12..0f214ceb5fb740b7d520673a870cefd1a7ba03d8 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,4 @@ spring.application.name=demo +spring.datasource.url=jdbc:mariadb://localhost:3306/sports +spring.datasource.username=root +spring.datasource.password=comsc \ No newline at end of file