Skip to content

Commit

Permalink
[DVK-72] test: 개발 서버 CI/CD 구축 테스트
Browse files Browse the repository at this point in the history
- 데이터베이스 설정값 확인을 위한 로그 추가
  • Loading branch information
LeeSM0518 committed Oct 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 983fdd5 commit 3be805b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/main/kotlin/com/devooks/backend/DevooksBackendApplication.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.devooks.backend

import com.devooks.backend.common.config.properties.DatabaseConfig
import com.devooks.backend.common.utils.createDirectory
import com.devooks.backend.common.utils.logger
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.boot.runApplication
@@ -9,7 +11,15 @@ import org.springframework.cloud.openfeign.EnableFeignClients
@EnableFeignClients
@SpringBootApplication
@ConfigurationPropertiesScan
class BackendApplication {
class BackendApplication(
private val databaseConfig: DatabaseConfig,
) {
private val logger = logger()

init {
logger.info("database : $databaseConfig")
}

companion object {
const val STATIC_ROOT_PATH = "static"
const val PROFILE_IMAGE_ROOT_PATH = "$STATIC_ROOT_PATH/profile-image"

0 comments on commit 3be805b

Please sign in to comment.