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:
kwoyke 2020-07-01 22:11:33 +02:00 committed by GitHub
parent eff6ed12e6
commit d1d4495ade
3 changed files with 7 additions and 3 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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);
}
}