From 3f53510fd98075b2ca243facb895188eb5aa9598 Mon Sep 17 00:00:00 2001 From: Brage Date: Mon, 17 Jul 2023 01:12:10 +0200 Subject: [PATCH] Update --- .../streamit/content/reader/ReaderApplication.kt | 11 ++++++++--- Reader/src/main/resources/application.properties | 2 ++ 2 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 Reader/src/main/resources/application.properties diff --git a/Reader/src/main/kotlin/no/iktdev/streamit/content/reader/ReaderApplication.kt b/Reader/src/main/kotlin/no/iktdev/streamit/content/reader/ReaderApplication.kt index 930fe04d..2082d64d 100644 --- a/Reader/src/main/kotlin/no/iktdev/streamit/content/reader/ReaderApplication.kt +++ b/Reader/src/main/kotlin/no/iktdev/streamit/content/reader/ReaderApplication.kt @@ -2,15 +2,20 @@ package no.iktdev.streamit.content.reader import no.iktdev.streamit.content.reader.analyzer.PreferenceReader import org.springframework.boot.autoconfigure.SpringBootApplication +import org.springframework.boot.runApplication +import org.springframework.context.ApplicationContext @SpringBootApplication class ReaderApplication val preference = PreferenceReader().getPreference() +private var context: ApplicationContext? = null +fun getContext(): ApplicationContext? { + return context +} +fun main(args: Array) { -fun main(array: Array) { - - + context = runApplication(*args) } diff --git a/Reader/src/main/resources/application.properties b/Reader/src/main/resources/application.properties new file mode 100644 index 00000000..172f9ade --- /dev/null +++ b/Reader/src/main/resources/application.properties @@ -0,0 +1,2 @@ +spring.output.ansi.enabled=always +logging.level.org.apache.kafka=WARN \ No newline at end of file