I have set following in spring boot yaml file. But not working. I checked the question Set DEFAULT_VIEW_INCLUSION in YAML file. But there they have given answer for new custom objectmapper object, but not using the spring convertor object.
spring: jackson: mapper: DEFAULT_VIEW_INCLUSION: true