今天在整合ssh三个框架时,有一个功能,是查询所有员工信息,且员工表和部门表是多对一的映射关系,代码能正常运行到查询得到一个List集合,但在页面展示的时候,就报异常了, java.lang.ClassCastException: com.ch.hibernate.Department_$$_javassist_0 cannot be cast to javassist.util.proxy.Proxy 问题应该出在实体类Department上,然后我参照网上的解释,将Department.hb…
package org.windwant.spring.core.proxy; import javassist.ClassPool; import javassist.CtClass; import javassist.CtMethod; /** * Created by windwant on 2016/9/18. */ public class MyJavassistProxy { public Object getProxySelf(String clazz, String pClazz…
报错: HTTP Status 500 - Could not write content: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_E…
Array 的操作方法和 String 的操作方法老是弄混>_<,下面就对于这两个对象的常用操作方法进行比较~~ Array ☞ 操作方法 concat():returns a new array comprised of the array on which it is called joined with the array(s) and/or value(s) provided as arguments. var new_array = old_array.concat(value1[,…