zhangshenghang commented on PR #2251: URL: https://github.com/apache/hertzbeat/pull/2251#issuecomment-2216330634
@tomsun28 ## Modifications Customized ObjectMapper Beans may override Spring Boot's default Jackson configuration. Use the Jackson2ObjectMapperBuilder provided by Spring to create the ObjectMapper. ## Verification When set to ``` jackson: default-property-inclusion: ALWAYS deserialization: fail-on-unknown-properties: true ``` Error <img width="311" alt="image" src="https://github.com/apache/hertzbeat/assets/29418975/f08cea7b-d3f5-4ed2-a256-b845405c1e12"> --- When configured to ``` jackson: default-property-inclusion: ALWAYS deserialization: fail-on-unknown-properties: false ``` Run successfully. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
