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