Avoid security loopholes using @JsonView

Written by paruldhingra | Published 2020/10/17
Tech Story Tags: technology | software-development | web-development | programming | spring-boot | javascript | javascript-top-story | understanding-javascript | web-monetization

TLDR Use @JsonView to limit or control fields display for different users. Don't expose more than you think needs exposing. Avoid security loopholes using @JonView. Use the same annotations to annotate the fields you want to receive when updating. For example, in userForm, annotate with userForm(UpdateUser.class) the fields. The same annotations are used in the handler, as below:.glygly.glyphobe.globe-globe: Glyphobe@ paruldhingra Software Enginner.via the TL;DR App

no story

Written by paruldhingra | Software Enginner | Blogger | A brain ambidextrous geek | Machine Learning Enthusiasts
Published by HackerNoon on 2020/10/17