feat : 커스텀 직렬화에 사용할 Secret 어노테이션 추가
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
package com.banjjoknim.playground.model
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JacksonAnnotation
|
||||||
|
|
||||||
|
/**
|
||||||
|
* [jackson-annotations](https://www.baeldung.com/jackson-annotations) 참고.
|
||||||
|
*
|
||||||
|
* @see com.fasterxml.jackson.annotation.JacksonAnnotation
|
||||||
|
* @see com.fasterxml.jackson.annotation.JacksonAnnotationsInside
|
||||||
|
*/
|
||||||
|
@Retention(AnnotationRetention.RUNTIME)
|
||||||
|
@Target(AnnotationTarget.PROPERTY)
|
||||||
|
@JacksonAnnotation // Jackson 에서 이 어노테이션을 인식할 수 있게 만들어준다.
|
||||||
|
annotation class Secret
|
||||||
Reference in New Issue
Block a user