Search in sources :

Example 6 with RestObjectMapperWithStringMapper

use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project java-chassis by ServiceComb.

the class JaxrsClient method init.

public static void init() throws Exception {
    BeanUtils.init();
    RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
    RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
}
Also used : RestObjectMapperWithStringMapperNotWriteNull(org.apache.servicecomb.demo.RestObjectMapperWithStringMapperNotWriteNull) RestObjectMapperWithStringMapper(org.apache.servicecomb.demo.RestObjectMapperWithStringMapper)

Example 7 with RestObjectMapperWithStringMapper

use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project java-chassis by ServiceComb.

the class JaxrsServer method main.

public static void main(String[] args) throws Exception {
    RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
    RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
    BeanUtils.init();
}
Also used : RestObjectMapperWithStringMapperNotWriteNull(org.apache.servicecomb.demo.RestObjectMapperWithStringMapperNotWriteNull) RestObjectMapperWithStringMapper(org.apache.servicecomb.demo.RestObjectMapperWithStringMapper)

Example 8 with RestObjectMapperWithStringMapper

use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project incubator-servicecomb-java-chassis by apache.

the class JaxrsServer method main.

public static void main(String[] args) throws Exception {
    RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
    RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
    BeanUtils.init();
}
Also used : RestObjectMapperWithStringMapperNotWriteNull(org.apache.servicecomb.demo.RestObjectMapperWithStringMapperNotWriteNull) RestObjectMapperWithStringMapper(org.apache.servicecomb.demo.RestObjectMapperWithStringMapper)

Aggregations

RestObjectMapperWithStringMapper (org.apache.servicecomb.demo.RestObjectMapperWithStringMapper)8 RestObjectMapperWithStringMapperNotWriteNull (org.apache.servicecomb.demo.RestObjectMapperWithStringMapperNotWriteNull)8 SpringApplicationBuilder (org.springframework.boot.builder.SpringApplicationBuilder)4