Changes the name of the SpringBus bean
This commit is contained in:
parent
d4a45164f6
commit
864839a841
|
@ -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,7 +10,7 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue