This minimal demo project reproduce a bug(?) I found in Spring Boot 1.2.3.RELEASE:
Enable @JsonProperty will make it impossible to alter the property(by using HTTP PUT)
Shortcut: https://github.com/cdcorg/JsonPropertyBug/blob/master/src/main/java/demothree/domain/Entity.java#L21
Without Spring Boot: the bug has been fixed. see https://jira.spring.io/browse/DATAREST-320
My Stack Overflow question: http://stackoverflow.com/questions/29692942/fields-with-jsonproperty-are-still-ignored-on-serialization-in-spring-boot-sp
A very strange solution:
After I switch back to Spring Data Rest 2.2.1 (contained in Spring Boot 1.2.1.RELEASE), HTTP PUT now works properly. You can verify this by changing my bug demo project's POM file.
Now I got confused: Why didn't I reproduce the same bug by using Spring Data Rest 2.2.1 as Runar Botten did? Why do I encounter the bug by using the latter versions(2.2.2) which are supposed to fix that??