Skip to content

Instantly share code, notes, and snippets.

@sirius2k
Created April 15, 2019 13:34
Show Gist options
  • Save sirius2k/6e745d94c5b33757a01f35fb3727e21b to your computer and use it in GitHub Desktop.
Save sirius2k/6e745d94c5b33757a01f35fb3727e21b to your computer and use it in GitHub Desktop.
Jackson deserialization only not null property annotation
package kr.co.redbrush.microservice.app.data
import com.fasterxml.jackson.annotation.JsonInclude
@JsonInclude(JsonInclude.Include.NON_NULL)
data class Account(var id: String = "", var password: String = "", var telephone: Telephone? = null)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment