BAEL-3265: Change port number to 8032 (#9618)
* BAEL-3265-PoC: Change port number to 8032 * BAEL-3265-PoC: Change the way the default port is set
This commit is contained in:
parent
eff6ed12e6
commit
d1d4495ade
|
@ -15,7 +15,7 @@ public class BurlapClient {
|
|||
@Bean
|
||||
public BurlapProxyFactoryBean burlapInvoker() {
|
||||
BurlapProxyFactoryBean invoker = new BurlapProxyFactoryBean();
|
||||
invoker.setServiceUrl("http://localhost:8080/b_booking");
|
||||
invoker.setServiceUrl("http://localhost:8032/b_booking");
|
||||
invoker.setServiceInterface(CabBookingService.class);
|
||||
return invoker;
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ public class HessianClient {
|
|||
@Bean
|
||||
public HessianProxyFactoryBean hessianInvoker() {
|
||||
HessianProxyFactoryBean invoker = new HessianProxyFactoryBean();
|
||||
invoker.setServiceUrl("http://localhost:8080/booking");
|
||||
invoker.setServiceUrl("http://localhost:8032/booking");
|
||||
invoker.setServiceInterface(CabBookingService.class);
|
||||
return invoker;
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@ import org.springframework.remoting.caucho.BurlapServiceExporter;
|
|||
import org.springframework.remoting.caucho.HessianServiceExporter;
|
||||
import org.springframework.remoting.support.RemoteExporter;
|
||||
|
||||
import java.util.Collections;
|
||||
|
||||
@Configuration @ComponentScan @EnableAutoConfiguration public class Server {
|
||||
|
||||
@Bean CabBookingService bookingService() {
|
||||
|
@ -31,7 +33,9 @@ import org.springframework.remoting.support.RemoteExporter;
|
|||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(Server.class, args);
|
||||
SpringApplication app = new SpringApplication(Server.class);
|
||||
app.setDefaultProperties(Collections.singletonMap("server.port", "8032"));
|
||||
app.run(args);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue