|
|
|
@ -17,14 +17,14 @@ public class WebServiceConfig {
|
|
|
|
|
public ITBasicWebService tBasicWebService() {
|
|
|
|
|
return new TBasicWebService();
|
|
|
|
|
}
|
|
|
|
|
@Value("${ws.prot}")
|
|
|
|
|
private String prot;
|
|
|
|
|
@Value("${ws.port}")
|
|
|
|
|
private String port;
|
|
|
|
|
@Value("${ws.parameter}")
|
|
|
|
|
private String parameter;
|
|
|
|
|
@Bean
|
|
|
|
|
public Endpoint endpoint() {
|
|
|
|
|
System.out.println("-----------------------web service服务已发布-------------------------");
|
|
|
|
|
String address = "http://"+"0.0.0.0"+":" + prot+"/" + parameter;
|
|
|
|
|
String address = "http://"+"0.0.0.0"+":" + port+"/" + parameter;
|
|
|
|
|
Endpoint publish = Endpoint.publish(address, tBasicWebService());
|
|
|
|
|
System.out.println(" "+address);
|
|
|
|
|
return publish;
|
|
|
|
|