Changes the name of the SpringBus bean

This commit is contained in:
Thai Nguyen 2016-07-21 09:20:48 +07:00
parent d4a45164f6
commit 864839a841
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package com.baeldung.cxf.spring;
import javax.xml.ws.Endpoint;
import org.apache.cxf.Bus;
import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.context.annotation.Bean;
@ -9,7 +10,7 @@ import org.springframework.context.annotation.Configuration;
@Configuration
public class ServiceConfiguration {
@Bean
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
return new SpringBus();
}