摘要: @OneToMany(cascade={CascadeType.REFRESH,CascadeType.REMOVE},mappedBy="parent",fetch=FetchType.EAGER)private Set childTypes = new HashSet();这个是懒加载异常,就是... 阅读全文
posted @ 2015-02-03 11:41 _启明 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 错误写法: cxt = new ClassPathXmlApplicationContext(); productService = (ProductService)cxt.getBean("productTypeServiceBean"); 正确写法: cxt = n... 阅读全文
posted @ 2015-02-03 11:17 _启明 阅读(7539) 评论(0) 推荐(0) 编辑