org.hibernate.lazyinitializationexception could not initialize proxy - no session
问题发生背景:JPA做数据持久操作。表之间关系:机构对象:@JsonIgnore@ManyToMany(mappedBy="organs")privateSetdepts;部门对象:@ManyToMany@JoinTable(name="depts_organs",joinColumns={@JoinColumn(name="dept_id",referencedColumnName="id")}