use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project java-chassis by ServiceComb.
the class JaxrsServer method main.
public static void main(final String[] args) throws Exception {
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
new SpringApplicationBuilder().sources(JaxrsServer.class).web(WebApplicationType.NONE).build().run(args);
}
use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project java-chassis by ServiceComb.
the class JaxrsClient method main.
public static void main(String[] args) throws Exception {
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
new SpringApplicationBuilder().sources(JaxrsClient.class).web(WebApplicationType.NONE).build().run(args);
org.apache.servicecomb.demo.jaxrs.client.JaxrsClient.run();
TestMgr.summary();
}
use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project incubator-servicecomb-java-chassis by apache.
the class JaxrsClient method main.
public static void main(String[] args) throws Exception {
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
new SpringApplicationBuilder().sources(JaxrsClient.class).web(WebApplicationType.NONE).build().run(args);
org.apache.servicecomb.demo.jaxrs.client.JaxrsClient.run();
TestMgr.summary();
}
use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project incubator-servicecomb-java-chassis by apache.
the class JaxrsServer method main.
public static void main(final String[] args) throws Exception {
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
new SpringApplicationBuilder().sources(JaxrsServer.class).web(WebApplicationType.NONE).build().run(args);
}
use of org.apache.servicecomb.demo.RestObjectMapperWithStringMapper in project incubator-servicecomb-java-chassis by apache.
the class JaxrsClient method init.
public static void init() throws Exception {
BeanUtils.init();
RestObjectMapperFactory.setDefaultRestObjectMapper(new RestObjectMapperWithStringMapper());
RestObjectMapperFactory.setConsumerWriterMapper(new RestObjectMapperWithStringMapperNotWriteNull());
}
Aggregations