You confused System.out.println
which does not obey any Jackson annotation with a classical String employeeAsString = mapper.writeValueAsString(employee)
.
Try the latter one and you'll get your field name in uppercase.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…