could not initialize proxy
来源:互联网 发布:网络通信系统 编辑:程序博客网 时间:2024/06/09 20:57
压入栈顶转json,出错
failed to lazily initialize a collection of role: cn.itcast.bos.domain.base.Courier.fixedAreas, could not initialize proxy - no Session //domain中有一个成员变量无非加载,即,懒加载
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: cn.itcast.bos.domain.base.Courier.fixedAreas, could not initialize proxy - no Session
action类
@Action(value="courier_pageQuery",results={@Result(name="success",type="json")})public String pageQuery(){//page其初始值位0Pageable pageable=new PageRequest(page-1, rows);Page<Courier>pageData=courierService.findPageData(pageable);//将转回的pagedata对象装回datagrid需要格式Map<String, Object> result=new HashMap<>();result.put("total", pageData.getTotalElements());//返回所有内容result.put("rows", pageData.getContent());ActionContext.getContext().getValueStack().push(result);return SUCCESS;}
数据的懒加载
阅读全文
0 0
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- could not initialize proxy
- 75. could not initialize proxy
- SHH could not initialize proxy
- could not initialize proxy - no Session
- could not initialize proxy - no Session
- could not initialize proxy - no Session
- could not initialize proxy - no Session
- could not initialize proxy - no Session
- ERROR - could not initialize proxy - no Session
- could not initialize proxy - no session
- JDK中的native方法源码实现
- 1302
- jedisLock—redis分布式锁实现
- Angular-Cli 学习笔记(整理中)
- phpStudy显示列表页
- could not initialize proxy
- 技术分享连载(六十三)
- 使用mfc调用dll来验证dll的正确性步骤
- Centos6.8版本升级yum自带git
- 记录 java 解析一个json数据
- 服务器性能优化
- SpringBoot数据库操作出现的
- Java调用webservice上传文件
- 怎么获取当前的点击事件的标签id