# webservice **Repository Path**: demo51/webservice ## Basic Information - **Project Name**: webservice - **Description**: webservice样例使用测试阶段。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-08-02 - **Last Updated**: 2024-05-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # springboot 整合webservice https://cloud.tencent.com/developer/article/1636559 https://blog.csdn.net/qq_43842093/article/details/123076587 https://blog.csdn.net/weixin_42924812/article/details/106671633 ```java @Bean public Endpoint endpoint(){ EndpointImpl endpoint=new EndpointImpl(springBus(),testService()); endpoint.publish("/TestService"); return endpoint; } @Bean public Endpoint endpoint2(){ // 如果 此处的 parseXml 是 new ,则在CatServiceImpl 里面无法使用@Autowired注入对象(spring管理的对象) EndpointImpl endpoint=new EndpointImpl(springBus(),new CatServiceImpl()); endpoint.publish("/CatService"); return endpoint; } ```