Web services 如何在spring boot soap应用程序上配置marshaller对象

Web services 如何在spring boot soap应用程序上配置marshaller对象,web-services,soap,spring-boot,Web Services,Soap,Spring Boot,我已经为SOAP应用程序创建了SpringBoot项目,但没有在联合配置上创建Jaxb2Marshaller-bean,它工作得很好 i、 应用程序能够解组和整理XML请求和响应。 这里的问题是,我想通过在@configuation类中创建Jaxb2Marshaller-marshaller-bean来修改marshaller/unmarshaller属性 并对封送拆收器/解编程序使用相同的方法,但在处理soap请求/响应时,封送拆收器/解编程序不调用该方法 @配置 公共类AppConfig{

我已经为SOAP应用程序创建了SpringBoot项目,但没有在联合配置上创建Jaxb2Marshaller-bean,它工作得很好 i、 应用程序能够解组和整理XML请求和响应。 这里的问题是,我想通过在@configuation类中创建Jaxb2Marshaller-marshaller-bean来修改marshaller/unmarshaller属性 并对封送拆收器/解编程序使用相同的方法,但在处理soap请求/响应时,封送拆收器/解编程序不调用该方法

@配置 公共类AppConfig{

 @Bean
Jaxb2Marshaller marshaller(){
    Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
    marshaller.setContextPath("com.mycompany.v1");
    marshaller.setMarshallerProperties(getPropeties());
}
在SimpleSpring项目中,相同的配置正在工作