Skip to content

Commit

Permalink
add :: batch job enabled false
Browse files Browse the repository at this point in the history
  • Loading branch information
esperar committed Oct 7, 2023
1 parent 114e52e commit 05d6d4e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bitgouel-batch/src/main/kotlin/team/msg/BatchApplication.kt
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package team.msg

import org.springframework.batch.core.configuration.annotation.EnableBatchProcessing
import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import kotlin.system.exitProcess

@SpringBootApplication
@EnableBatchProcessing
class BatchApplication

fun main(args: Array<String>) {
Expand Down
6 changes: 5 additions & 1 deletion bitgouel-batch/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ spring:
jdbc-url: jdbc:mysql://${DB_URL:localhost:3306}/${DB_NAME:bitgouel}?useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Seoul&allowPublicKeyRetrieval=true
username: ${DB_USER:bitgouel-admin}
password: ${DB_PASSWORD:Esperer123!}
driver-class-name: com.mysql.cj.jdbc.Driver
driver-class-name: com.mysql.cj.jdbc.Driver

batch:
job:
enabled: false
9 changes: 9 additions & 0 deletions bitgouel-domain/src/main/kotlin/common/LoggerDelegator.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package common

import org.slf4j.LoggerFactory
import java.util.logging.Logger

class LoggerDelegator {
private var logger: Logger? = null
operator fun getValue(thisRef: Any?, property: Any?) = logger ?: LoggerFactory.getLogger(thisRef?.javaClass)!!
}

0 comments on commit 05d6d4e

Please sign in to comment.