File tree 2 files changed +3
-8
lines changed
store-api/src/main/java/com/siriusxi/ms/store/api/event
store-utils/src/main/java/com/siriusxi/ms/store/util/config
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 1
1
package com .siriusxi .ms .store .api .event ;
2
2
3
- import com .fasterxml .jackson .annotation .JsonFormat ;
4
- import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
5
- import com .fasterxml .jackson .datatype .jsr310 .ser .LocalDateTimeSerializer ;
6
3
import lombok .AllArgsConstructor ;
7
4
import lombok .Data ;
8
5
import lombok .NoArgsConstructor ;
@@ -22,8 +19,6 @@ public class Event<K, T> {
22
19
private Event .Type eventType ;
23
20
private K key ;
24
21
private T data ;
25
- @ JsonFormat (shape = JsonFormat .Shape .STRING , pattern = "yyyy-MM-dd@HH:mm:ss.SSS" )
26
- @ JsonSerialize (using = LocalDateTimeSerializer .class )
27
22
private LocalDateTime eventCreatedAt ;
28
23
29
24
public Event (Type eventType , K key , T data ) {
Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ public class GlobalConfiguration {
25
25
public Jackson2ObjectMapperBuilderCustomizer jacksonCustomizer () {
26
26
return builder ->
27
27
builder
28
- .visibility (PropertyAccessor . FIELD , JsonAutoDetect . Visibility . ANY )
29
- // human readable
30
- . indentOutput ( true );
28
+ .visibility (
29
+ PropertyAccessor . FIELD ,
30
+ JsonAutoDetect . Visibility . ANY );
31
31
}
32
32
}
You can’t perform that action at this time.
0 commit comments