Skip to content

Instantly share code, notes, and snippets.

View sprelacart's full-sized avatar

Sprelacart sprelacart

View GitHub Profile
@sprelacart
sprelacart / Inject ObjectMapper instance via @Context into REST method
Last active August 8, 2022 11:54
Inject ObjectMapper instance via @context into REST method
package com.tomtom.dcs.springconfig;
import java.util.Arrays;
import javax.ws.rs.core.Application;
import javax.ws.rs.ext.RuntimeDelegate;
import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.endpoint.Server;
import org.apache.cxf.jaxrs.JAXRSServerFactoryBean;