Sometimes the backend retrieves some fields from the database, and some fields need to be processed, and then assigned to other fields to upload to the front end for display. In this case, the original fields are meaningless to the front desk and are redundant feedback. Fields, you can add @JsonIgnore annotations to these fields, and these fields will be excluded when returning to the front-end data.
Use @JsonIgnore annotation to ignore some attributes that you don't want to pass to the front desk
Guess you like
Origin blog.csdn.net/weixin_38106322/article/details/111187014
Recommended
Ranking