Skip to content

Commit

Permalink
feature(refactoring):xxx removed message coverters
Browse files Browse the repository at this point in the history
  • Loading branch information
ds-mwesener committed Jun 17, 2024
1 parent a4f049a commit 7a72e52
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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> acceptedPolicy = buildAcceptedPolicies();
defaultAcceptedPoliciesProvider.addAcceptedPolicies(acceptedPolicy);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down Expand Up @@ -225,7 +224,6 @@ private List<HttpMessageConverter<?>> 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));

Expand Down

0 comments on commit 7a72e52

Please sign in to comment.