|
|
|
@ -3,6 +3,8 @@ package com.docus.webservice.config;
|
|
|
|
|
import com.docus.webservice.enums.Codes;
|
|
|
|
|
import com.docus.webservice.handler.ITBasicWebService;
|
|
|
|
|
import com.docus.webservice.handler.TBasicWebService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
|
|
import org.springframework.context.annotation.Configuration;
|
|
|
|
|
|
|
|
|
@ -15,11 +17,14 @@ public class WebServiceConfig {
|
|
|
|
|
public ITBasicWebService tBasicWebService() {
|
|
|
|
|
return new TBasicWebService();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Value("${ws.prot}")
|
|
|
|
|
private String prot;
|
|
|
|
|
@Value("${ws.prot}")
|
|
|
|
|
private String parameter;
|
|
|
|
|
@Bean
|
|
|
|
|
public Endpoint endpoint() {
|
|
|
|
|
System.out.println("-----------------------web service服务已发布-------------------------");
|
|
|
|
|
String address = "http://"+"0.0.0.0"+":" + Codes.EXTERNAL.getCode()+"/" + Codes.EXTERNAL.getMessage();
|
|
|
|
|
String address = "http://"+"0.0.0.0"+":" + prot+"/" + parameter;
|
|
|
|
|
Endpoint publish = Endpoint.publish(address, tBasicWebService());
|
|
|
|
|
System.out.println(" "+address);
|
|
|
|
|
return publish;
|
|
|
|
|