Actions
Tareas #190
closedSelene Wrapper - Tareas #189: Create new pattern for JSON services
Create class CustomJacksonJaxbJsonProvider
Puntos de historia:
1
Description
Tomee container takes de Johnzon JSON provider to convert beans to/from JSON because it's the default JSON provider.
It's neccesary to add the Jackson JSON provider to make this conversion correctly.
Tomee still take Johnzon as the defautl jSON provider.
So, extend the class JacksonJaxbJsonProvider:
<dependency> <groupId>com.fasterxml.jackson.jaxrs</groupId> <artifactId>jackson-jaxrs-json-provider</artifactId> <version>2.4.3</version> </dependency>
Add the follow annotations:
@Provider @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON)
Updated by Jesús Freire almost 7 years ago
- Status changed from Nueva to En curso
Updated by Jesús Freire almost 7 years ago
- Status changed from En curso to Resuelta
- % Done changed from 10 to 90
Applied in changeset selene-j2ee-webapp|r742.
Updated by Jesús Freire almost 7 years ago
- Due date set to 07/30/2018
- Status changed from Resuelta to Cerrada
- % Done changed from 90 to 100
Actions