Skip to content

Commit

Permalink
➕ Add: swagger dependency and config
Browse files Browse the repository at this point in the history
  • Loading branch information
jun108059 committed Oct 3, 2024
1 parent 1ebf555 commit 95d2eb3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin")
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0")
runtimeOnly("com.mysql:mysql-connector-j")

testImplementation("org.mockito:mockito-core:4.11.0")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(module = "mockito-core")
Expand All @@ -33,7 +36,6 @@ dependencies {
testImplementation("com.ninja-squad:springmockk:4.0.2")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
runtimeOnly("com.mysql:mysql-connector-j")
}

kotlin {
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,9 @@ spring:
properties:
hibernate:
format_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
dialect: org.hibernate.dialect.MySQL8Dialect
springdoc:
api-docs:
path: /v3/api-docs
swagger-ui:
path: /swagger-ui.html

0 comments on commit 95d2eb3

Please sign in to comment.