How do I disable fail_on_empty_beans in Jackson?

前端 未结 12 1242
广开言路
广开言路 2020-12-01 05:44

Using jackson 2.1, how do I disable the fail_on_empty beans that the error message seems to want me to disable?

I\'m assuming this is just the simplest

12条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 06:39

    If you are using Spring Boot, you can set the following property in application.properties file. spring.jackson.serialization.FAIL_ON_EMPTY_BEANS=false

提交回复
热议问题