java 实体类转换成json报错,请指教!
JRA有:json-lib-2.4-jdk15.jarezmorph-1.0.6.jarcommons-collections-3.2.1.jarcommons-lang...
JRA有: json-lib-2.4-jdk15.jar ezmorph-1.0.6.jar commons-collections-3.2.1.jar commons-lang3-3.1.jar ezmorph-1.0.6.jar struts2-json-plugin-2.3.15.1.jar 实体类pageData: public class PageData { @SuppressWarnings("unchecked") public PageData(List data, String total, String currentPage, String pageSize) { this.data = data; this.total = total; this.currentPage = currentPage; this.pageSize = pageSize; } // 查询结果 @SuppressWarnings("unchecked") private List data; // 总记录数 private String total; // 当前页 private String currentPage; // 每页大小 private String pageSize; public List getData() { return data; } public void setData(List data) { this.data = data; } public String getTotal() { return total; } public void setTotal(String total) { this.total = total; } public String getCurrentPage() { return currentPage; } public void setCurrentPage(String currentPage) { this.currentPage = currentPage; } public String getPageSize() { return pageSize; } public void setPageSize(String pageSize) { this.pageSize = pageSize; } action : List lt = userService.getpendcheck(pageSize, pageIndex); int count = userService.getPendCheckCount(); pageData=new PageData(lt,String.valueOf(count),String.valueOf(pageSize),String.valueOf(pageIndex)); String s= JSONArray.fromObject(pageData).toString();报错 Source not found for UserServiceAo$$FastClassByCGLIB$$2c1f2002.invoke(int, Object, Object[]) line: not available 有谁知道是什么问题吗?请告诉一下我!
展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询