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,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() {
|
||||||
|
|
Loading…
Reference in New Issue