请问在webservice通过@Autowired 注入为空,如何解决,同时在webservice如何返回多个值呢

lishitianxi lishitianxi 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
例子:
@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就是为空的,就是因为注入失败,为什么
比如成功 返回多个值怎么做
}
...全文
评论 4
收藏 已收藏
分享
返回顶部
lishitianxi
Web 开发 81,108 成员 341,720 内容