From a66c4959f4f651f5e92473f3f346ff50bd6fb7ff Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Tue, 26 May 2026 10:10:34 +0200 Subject: fix: update Jackson config to fix probably bean dependency issue (#291) In rare cases, the dependency to the Jackson 3 config was not present as unique dependency when starting the application.--- .../dev/dnpm/etl/processor/config/AppConfiguration.kt | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/main/kotlin/dev/dnpm') diff --git a/src/main/kotlin/dev/dnpm/etl/processor/config/AppConfiguration.kt b/src/main/kotlin/dev/dnpm/etl/processor/config/AppConfiguration.kt index 1c18aab..3e88ffd 100644 --- a/src/main/kotlin/dev/dnpm/etl/processor/config/AppConfiguration.kt +++ b/src/main/kotlin/dev/dnpm/etl/processor/config/AppConfiguration.kt @@ -170,20 +170,15 @@ class AppConfiguration { } @Bean - fun reportService(): ReportService { - return ReportService(getJsonMapper()) + fun reportService(jsonMapper: JsonMapper): ReportService { + return ReportService(jsonMapper) } @Bean - fun getJsonMapper(): JsonMapper { - return JacksonConfig().jsonMapper() - } - - @Bean - fun transformationService(configProperties: AppConfigProperties): TransformationService { + fun transformationService(jsonMapper: JsonMapper, configProperties: AppConfigProperties): TransformationService { logger.info("Apply ${configProperties.transformations.size} transformation rules") return TransformationService( - getJsonMapper(), + jsonMapper, configProperties.transformations.map { Transformation.of(it.path) from it.from to it.to }, ) } -- cgit v1.2.3