From 7a72e52f90d75e91a4f2da4ecdbb7908d69bfa45 Mon Sep 17 00:00:00 2001 From: Maximilian Wesener Date: Mon, 17 Jun 2024 16:04:00 +0200 Subject: [PATCH] feature(refactoring):xxx removed message coverters --- .../traceability/common/config/PolicyStartUpConfig.java | 1 - .../traceability/common/config/RestTemplateConfiguration.java | 2 -- 2 files changed, 3 deletions(-) diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/PolicyStartUpConfig.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/PolicyStartUpConfig.java index fb92971ea1..b945569866 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/PolicyStartUpConfig.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/PolicyStartUpConfig.java @@ -74,7 +74,6 @@ public class PolicyStartUpConfig { @ConditionalOnProperty(name = "applicationConfig.registerDecentralRegistryPermissions.enabled", havingValue = "true") public void registerDecentralRegistryPermissions() throws JsonProcessingException { ObjectMapper mapper = new ObjectMapper(); - mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); mapper.registerModule(new JavaTimeModule()); List acceptedPolicy = buildAcceptedPolicies(); defaultAcceptedPoliciesProvider.addAcceptedPolicies(acceptedPolicy); diff --git a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/RestTemplateConfiguration.java b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/RestTemplateConfiguration.java index ff9cfb7701..524d79ba88 100644 --- a/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/RestTemplateConfiguration.java +++ b/tx-backend/src/main/java/org/eclipse/tractusx/traceability/common/config/RestTemplateConfiguration.java @@ -143,7 +143,6 @@ public RestTemplate irsAdminTemplate(@Autowired TraceabilityProperties traceabil .rootUri(traceabilityProperties.getIrsBase()) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) // Set Content-Type header .defaultHeader(IRS_API_KEY_HEADER_NAME, traceabilityProperties.getAdminApiKey()) - .messageConverters(customMessageConverters()) .build(); } @@ -225,7 +224,6 @@ private List> customMessageConverters() { .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_ENUMS, true) .configure(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES, true) .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) - .configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false) .build() .registerModules(javaTimeModule));