No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md
pom.xml

README.md

Spring Boot Fields with @JsonProperty are ignored on serialization Bug

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??