diff options
| author | Paul-Christian Volkmer | 2026-05-26 10:10:34 +0200 |
|---|---|---|
| committer | GitHub | 2026-05-26 08:10:34 +0000 |
| commit | a66c4959f4f651f5e92473f3f346ff50bd6fb7ff (patch) | |
| tree | 51c22dd56c88bed8dda8fc19fde1f44861a06f9c /src/main/kotlin/dev/dnpm/etl/processor | |
| parent | a26c11026fbca0dd12a91779806badd889a6ee57 (diff) | |
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.
Diffstat (limited to 'src/main/kotlin/dev/dnpm/etl/processor')
| -rw-r--r-- | src/main/kotlin/dev/dnpm/etl/processor/config/AppConfiguration.kt | 13 |
1 files changed, 4 insertions, 9 deletions
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 }, ) } |
