香港为什么不用人民币
Current License: CC BY-SA 3.0
10 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 19, 2020 at 11:50 | comment | added | Gaurav Pingale | mapper.configure(DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false); worked for me | |
Sep 24, 2017 at 12:29 | comment | added | Frans | Downvoted as it does not answer the OP's question. Ignoring unknown properties doesn't solve his problem, but leaves him with a Wrapper instance where the students list is null or empty. | |
Apr 23, 2015 at 23:10 | comment | added | icfantv | You can also chain these calls like: getObjectMapper().disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES) | |
Mar 4, 2014 at 14:36 | history | edited | Suresh | CC BY-SA 3.0 |
deleted 1 characters in body
|
Jul 19, 2013 at 22:40 | comment | added | 755 | ^Above is for Jackson versions prior to 2 | |
Jan 25, 2013 at 0:53 | comment | added | raf | FWIW -- I had to import this slightly different enum: org.codehaus.jackson.map.DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES | |
Oct 8, 2012 at 12:52 | comment | added | Denys Kniazhev-Support Ukraine | I run this code: pastebin.com/rdBNezEn. However, I have realized that what this question asks is a bit different. Your answer is valid | |
Oct 7, 2012 at 16:51 | comment | added | Suresh | Could u please paste atleast a piece of code what exactly u are doing, You might have missed something there..Either by doing this or by using "@JsonIgnoreProperties(ignoreUnknown = true) " Your problem should be resolved. Anyways good luck. | |
Oct 5, 2012 at 13:29 | comment | added | Denys Kniazhev-Support Ukraine | This didn't work for me, it still fails on unknown properties | |
Oct 4, 2012 at 15:27 | history | answered | Suresh | CC BY-SA 3.0 |