Does anyone have jaxrs + jsonb working in 2.5.0? I have in my pom:
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>jaxrs</artifactId>
</dependency>
<dependency>
<groupId>io.thorntail</groupId>
<artifactId>jaxrs-jsonb</artifactId>
</dependency>
I have in a DTO:
@JsonbProperty("id")
private Long id;
@JsonbProperty("name")
private String name;
@JsonbProperty("description")
private String description;
@JsonbProperty("createdAt")
@JsonbDateFormat("yyyy-MM-ddTkk:mm:ss[.S]'Z")
private Date createdAt;
@JsonbProperty("something_else")
@JsonbDateFormat("yyyy-MM-ddTkk:mm:ss.S'Z")
private Date updatedAt;
The result, however:
[
{
"id": 1,
"name": "test node 1",
"description": "test description",
"createdAt": 1574358741845,
"updatedAt": 1574358741957
}
]
No date formatting, and the final property name is unchanged.
Is there some other bootstrapping I have to do to enable jsonb
processing?
--
Harold Campbell <
hc...@muerte.net>