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