天天看點

RESTEasy +Jackson 2 進行JSON轉換

[size=large][b]1. 整合RESTEasy和Jackson2 [/b][/size]

需要引入resteasy-jackson-provider.jar

[size=large][b]2.一個簡單的Object[/b][/size]

[b][size=large]3. REST Service [/size][/b]

[size=large][b]4. RUN[/b][/size]

請求:http://localhost:8080/resteasy-example/hello/customer/json

[img]http://dl2.iteye.com/upload/attachment/0086/2669/4d8c323f-f11e-38a9-a55e-82d011e5fd5b.png[/img]