Using Spring Boot Webflux 2.2.5 and JsonViews can not set Jackson DEFAULT_VIEW_INCLUSION to true using application properties YAML file.
spring:
jackson:
mapper:
DEFAULT_VIEW_INCLUSION: true
Comment From: sbrannen
@philwebb and @snicoll, can one of you please transfer this to Spring Boot's issue tracker?
Comment From: snicoll
@monstrfolk based on your report, you seem to indicate that this configuration does not enable the DEFAULT_VIEW_INCLUSION
Jackson feature. Pasting this configuration in an empty project enables it for me. If you believe you've found a bug in Spring Boot, can you please provide more information? A sample that demonstrates the problem would be ideal.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: monstrfolk
In the project properties are using both @JsonView and @JsonProperty with access defined. Seems using both is not supported.
Comment From: snicoll
Thanks for the feedback, but that doesn't sound like a Spring Boot issue to me. If you feel differently, can you please review my previous comment and provide the sample sample we need? You can do so by attaching a zip to this issue or providing a link to a GitHub repo.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.