-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
42 additions
and
256 deletions.
There are no files selected for viewing
Empty file.
This file was deleted.
Oops, something went wrong.
102 changes: 0 additions & 102 deletions
102
...rojects/domain_event_api/src/main/kotlin/club/staircrusher/domain_event_api/Converters.kt
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
...omain_event_api/src/main/kotlin/club/staircrusher/domain_event_api/ProtoEventConverter.kt
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...vent_api/src/main/proto/club/staircrusher/domain_event_api/event/place_search_event.proto
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
...ubprojects/domain_event_api/src/main/proto/club/staircrusher/domain_event_api/place.proto
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
..._message/src/main/kotlin/club/staircrusher/spring_message/JacksonSerializedSpringEvent.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package club.staircrusher.spring_message | ||
|
||
import club.staircrusher.stdlib.domain.event.DomainEvent | ||
import org.springframework.context.ApplicationEvent | ||
|
||
data class JacksonSerializedSpringEvent<T : DomainEvent>( | ||
val type: Class<T>, | ||
val value: String, | ||
): ApplicationEvent(value) |
8 changes: 0 additions & 8 deletions
8
...jects/spring_message/src/main/kotlin/club/staircrusher/spring_message/ProtoSpringEvent.kt
This file was deleted.
Oops, something went wrong.
10 changes: 5 additions & 5 deletions
10
...ts/spring_message/src/main/kotlin/club/staircrusher/spring_message/SpringEventListener.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
...jects/spring_web/src/main/kotlin/club/staircrusher/spring_web/jackson/SccJacksonConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package club.staircrusher.spring_web.jackson | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude | ||
import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer | ||
import org.springframework.context.annotation.Bean | ||
import org.springframework.context.annotation.Configuration | ||
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder | ||
|
||
|
||
@Configuration(proxyBeanMethods = false) | ||
open class SccJacksonConfig { | ||
@Bean | ||
open fun jsonCustomizer(): Jackson2ObjectMapperBuilderCustomizer? { | ||
return Jackson2ObjectMapperBuilderCustomizer { builder: Jackson2ObjectMapperBuilder -> | ||
builder | ||
.serializationInclusion(JsonInclude.Include.NON_ABSENT) | ||
.failOnUnknownProperties(false) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters