请问在webservice通过@Autowired 注入为空,如何解决,同时在webservice如何返回多个值呢
例子:
@WebService
public interface UserService {
@WebMethod
public String getUserByName(String name, String status);
@WebService
public class UserServiceImpl extends SpringBeanAutowiringSupport implements UserService{
@Autowired
private UserService userService;
public String getUserByName(String name){
UserEntity menber = userService.queryUser(name);
//现在member就是为空的,就是因为注入失败,为什么
比如成功 返回多个值怎么做
}
@WebService
public interface UserService {
@WebMethod
public String getUserByName(String name, String status);
@WebService
public class UserServiceImpl extends SpringBeanAutowiringSupport implements UserService{
@Autowired
private UserService userService;
public String getUserByName(String name){
UserEntity menber = userService.queryUser(name);
//现在member就是为空的,就是因为注入失败,为什么
比如成功 返回多个值怎么做
}
...全文
相关推荐
Android通过webservice连接Sqlserver实例
Android连接SQLServer详细教程(数据库+服务器+客户端) 博客http://blog.csdn.net/zhyl8157121/article/details/8169172中的资源
WebService连接接口,解析,渲染页面
本文主要讲解了本人对于刚接触webService时的一些见解,从WebService连接接口,到解析从接口得到的数据,并且用SpringMVC渲染页面,将得到的数据动态渲染页面。
Axis2与Spring整合发布多个WebService
Axis2与Spring整合发布多个WebService,项目使用Maven管理。
Ajax请求WebService跨域问题的解决方案
主要介绍了Ajax请求WebService跨域问题的解决方案,本文给大家介绍的非常详细,具有参考借鉴价值,需要的朋友可以参考下
调用WebService与后台数据交互示例
调用WebService与后台数据库交互示例.文档写得很详细,包括截图和全部源代码,都在里面。好好看看吧


Web 开发
