Javatpoint Logo
Javatpoint Logo

Disable Annotation

Usually we need to disable the Jackson annotation after completing its work. So, we use the disable() method of ObjectMapper class for disabling the annotation.

We pass the USE_ANNOTATIONS mapper feature to the disable() method of the ObjectMapper class.

Let's take an example to understand how to use the disable() method for disabling an annotation.

DisableAnnotationExample.java

Output:

Disable Annotation





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA