Injecting Jaxb2Marshaller in Spring MVC controller
问题 I am trying to convert a static xml into a POJO (unmarshalling) in my controller class. I am using Jaxb2Marshaller and I am configuring in the following way in my root context <oxm:jaxb2-marshaller id="marshaller"> <oxm:class-to-be-bound name="org.springframework.ws.samples.airline.schema.Airport"/> </oxm:jaxb2-marshaller> I am trying to inject the marshaller using autowiring. But it throws No Bean Found Exception . @AutoWired private Unmarshaller marshaller; How to inject the marshaller in