发布wsdl:
@WebService(endpointInterface = "cn.itcast.serviceWSDL.UserServiceWSDL",
serviceName = "
userinfoService",targetNamespace="impl.serviceWSDL.itcast.cn")
//@Transactionalpublic class UserServiceWSDLBean implements UserServiceWSDL {
在调用userService = (UserService)BeanFactory.getBean("userService");
红色字体名字不能与applicationContext中id的名字一致,否则报错 找不到cn.itcast.service.impl.UserServiceBean
<bean id="
userService" class="cn.itcast.service.impl.UserServiceBean">
<property name="dataSource" ref="dataSource"/>
</bean>