본문 바로가기

0x02 Platform & Framework/0x024 Jersey Framework

POJO Mapping JOSN In Jersey

Server Side :


Web.xml



     <init-param>

            <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>

              <param-value>true</param-value>

        </init-param>

  

추가..


Client Side : 


ClientConfig clientConfig = new DefaultClientConfig();

clientConfig.getProperties().put(

ClientConfig.PROPERTY_FOLLOW_REDIRECTS, true);

clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);


기술..