anywnyu
anywnyu
``` String jsonString = "{ \"username\":\"username\",\"password\":\"password\" }"; try { json = mapper.readValue(jsonString, JsonTest.class); System.out.println(json.getPassword()); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } ``` I expect the...
@cowtowncoder My version is 2.8.8, password can not be deserialized and the output is null
@cowtowncoder I don't know what 'functioning unit test' you need? Could you tell me what is the output with the follow code? Please. I expect the output to be "password",...
@runjia1987 我的英文不怎么样,没看太明白. 你能否提供给@cowtowncoder一个能跑的test case?
``` @JsonIgnoreProperties(value = { "password" }, ignoreUnknown = true, allowSetters = true) public class JsonTest { private String username; private String password; public JsonTest() { super(); // TODO Auto-generated constructor...