---
title: "Discussion on \"Hide the entity/model class field value in SpringBoot app\" | Hashnode"
description: "Discussion on \"Hide the entity/model class field value in SpringBoot app\". Introduction: It's easy to hide the field value from the REST API call using the annotation JsonIgnore, all you need is the field that you want to hide the variable/field. Let's take an example UserCredentials java class below:\npackage com.example.re..."
url: "https://hashnode.com/posts/hide-the-entitymodel-class-field-value-in-springboot-app/62e32fe4d7b405bea1559531"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Hide the entity/model class field value in SpringBoot app](https://sandeepbegudem.hashnode.dev/hide-the-entitymodel-class-field-value-in-springboot-app?utm_source=hashnode&utm_medium=feed)

Introduction: It's easy to hide the field value from the REST API call using the annotation JsonIgnore, all you need is the field that you want to hide the variable/field. Let's take an example UserCredentials java class below: package com.example.re...

Jul 29, 2022 · 2 min read · sandeepbegudem.hashnode.dev  
Updated Mar 1, 2023  
Read the article

-   [#springboot](https://hashnode.com/tag/springboot)
-   [#rest-api](https://hashnode.com/tag/rest-api)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#springbootannotations](https://hashnode.com/tag/springbootannotations)

## Written by

[Sandeep Beegudem](https://hashnode.com/@bsundip27)

@bsundip27 · Dallas, Texas

  
[View profile](https://hashnode.com/@bsundip27)

I am a Java Software Engineer from San Antonio, Texas.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
