PUT and POST fail on unknown properties Spring different behavior

前端 未结 4 1569
野的像风
野的像风 2021-01-07 19:46

I am writing Spring Boot application using Spring Data Rest repositories and I want to deny access to resource if request body contains JSON that has unknown properties. Def

4条回答
  •  萌比男神i
    2021-01-07 20:26

    You're using Jackson2ObjectMapperBuilder, which has the property DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES set to the disabled value by default.

提交回复
热议问题