标签: spring-ws
我一直在尝试从Spring配置的XML配置切换到Java配置。我无法做的唯一因素就是编组人员。
XML专栏:
注释驱动的marshaller =" xmlBeansMarshaller"解组=" xmlBeansMarshaller"
: @EnableWs @Configuration, 但我似乎无法找到如何在代码中设置marshallers。
@EnableWs
@Configuration
有什么想法吗?
由于
答案 0 :(得分:0)
Marshallers可以通过使用常规@Bean定义进行注册。例如,考虑this sample app configuration。
@Bean