Skip to content

Spring Framework Playground for my hacks,tips and tricks..

Notifications You must be signed in to change notification settings

gauravbrills/SpringPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Spring Playground

A playground for stuff I had to hack out in spring using kewl spring boot as the base of it all.

  1. the curious case of hiding entity fields in spring data rest response
    1. This is done via using Jackson modules to customize data rest behaviour which can be easily hacked by using a serializerModifier as in class FilteringSerializerModifier
    2. A small hook has been added to demonstrate a use case where the spring security roles are used to get fields to be hidden per user. The repository for ExcludedField Holds this mapping and the logic resides in RoleBasedFilterServiceImpl

more to come ...

© Gaurav Rawat - 2016 , do a pull request for contributions

About

Spring Framework Playground for my hacks,tips and tricks..

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages