white knight

导航

 
@SpringBootApplication
public class Application implements CommandLineRunner {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}

public void run(String... args) {
String wsdlprefix = "http://127.0.0.1:8000/ws/";

address = wsdlprefix + "UserService";

Endpoint.publish(address, getUserService());

System.out.println("******** Service is published success!!!*******");
}

@Bean
public UserService getUserService() {
return new UserService();
}
}
posted on 2018-03-09 10:32  white knight  阅读(141)  评论(0编辑  收藏  举报