public void xxxxx 这个是没有返回值的,所以用return是返回不出内容的,自定义设置也不行 修改为 public String xxxxx 即可返回String类型的数据 转载于:https://www.cnblogs.com/hkgov/p/7691584.html