Skip to content

Commit

Permalink
Omitting exception with OffsetDateTime and jsr310 datatype version
Browse files Browse the repository at this point in the history
  • Loading branch information
dupliaka committed Apr 1, 2022
1 parent 11e6a21 commit d260496
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.json.JsonMapper;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;

@Component
public class LogEventPublisher implements EventPublisher {

ObjectMapper json = new ObjectMapper();
ObjectMapper json = JsonMapper.builder()
.addModule(new JavaTimeModule())
.build();

@Override
public void publish(DataEvent<?> event) {
Expand Down

0 comments on commit d260496

Please sign in to comment.