From ddb8812d82b6414573e4754956226bcfe8cdaa57 Mon Sep 17 00:00:00 2001 From: soohyeon Date: Mon, 25 Nov 2024 08:27:28 +0900 Subject: [PATCH] ktlint --- .../bookmark/service/BookmarkService.kt | 4 +- .../kotlin/org/meogo/global/utill/FcmUtil.kt | 1 - src/main/resources/application.yml | 39 +++++++++---------- 3 files changed, 20 insertions(+), 24 deletions(-) diff --git a/src/main/kotlin/org/meogo/domain/bookmark/service/BookmarkService.kt b/src/main/kotlin/org/meogo/domain/bookmark/service/BookmarkService.kt index b13980c..e97aa42 100644 --- a/src/main/kotlin/org/meogo/domain/bookmark/service/BookmarkService.kt +++ b/src/main/kotlin/org/meogo/domain/bookmark/service/BookmarkService.kt @@ -3,7 +3,6 @@ package org.meogo.domain.bookmark.service import org.meogo.domain.bookmark.domain.Bookmark import org.meogo.domain.bookmark.domain.BookmarkRepository import org.meogo.domain.bookmark.exception.BookmarkNotFoundException -import org.meogo.domain.post.domain.PostRepository import org.meogo.domain.user.exception.UserNotFoundException import org.meogo.domain.user.facade.UserFacade import org.springframework.stereotype.Service @@ -13,8 +12,7 @@ import org.springframework.transaction.annotation.Transactional @Service class BookmarkService( private val bookmarkRepository: BookmarkRepository, - private val userFacade: UserFacade, - private val postRepository: PostRepository + private val userFacade: UserFacade ) { fun execute(schoolId: Int) { diff --git a/src/main/kotlin/org/meogo/global/utill/FcmUtil.kt b/src/main/kotlin/org/meogo/global/utill/FcmUtil.kt index b811a6c..4ff1860 100644 --- a/src/main/kotlin/org/meogo/global/utill/FcmUtil.kt +++ b/src/main/kotlin/org/meogo/global/utill/FcmUtil.kt @@ -23,7 +23,6 @@ class FcmUtil { } catch (e: FirebaseMessagingException) { throw FcmException } - } fun messageSetting(fcmToken: List, title: String, message: String) = diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 77a007c..ae26458 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,25 +1,24 @@ spring: - spring: - config.activate.on-profile: default - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - url: ${DB_URL} - username: ${DB_USERNAME} - password: ${DB_PASSWORD} - hikari: - maxLifetime: 580000 - jpa: + config.activate.on-profile: default +datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + url: ${DB_URL} + username: ${DB_USERNAME} + password: ${DB_PASSWORD} + hikari: + maxLifetime: 580000 +jpa: + hibernate: + ddl-auto: update + show-sql: true + properties: hibernate: - ddl-auto: update - show-sql: true - properties: - hibernate: - format_sql: true - open-in-view: false - database: mysql + format_sql: true + open-in-view: false + database: mysql - jackson: - property-naming-strategy: SNAKE_CASE +jackson: + property-naming-strategy: SNAKE_CASE auth: jwt: @@ -38,7 +37,7 @@ cloud: default-image: ${DEFAULT_IMAGE} bucket: ${S3_BUCKET} region: - static: ap-northeast-2 + static: ap-northeast-2 stack: auto: false