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 javax.xml.ws.Endpoint;
import org.apache.cxf.Bus;
import org.apache.cxf.bus.spring.SpringBus; import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.jaxws.EndpointImpl; import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
@ -9,10 +10,10 @@ import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
public class ServiceConfiguration { public class ServiceConfiguration {
@Bean @Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() { public SpringBus springBus() {
return new SpringBus(); return new SpringBus();
} }
@Bean @Bean
public Endpoint endpoint() { public Endpoint endpoint() {