**
Javassist Enhancement failed;cannot be cast to javassist.util.proxy.Proxy问题解决
**
在使用ssh框架时,出现如下错误:
22:31:21,161 ERROR DefaultDispatcherErrorHandler:42 - Exception occurred during processing request: HHH000142: Javassist Enhancement failed: com.itheima.domain.Dict;
nested exception is org.hibernate.HibernateException: HHH000142: Javassist Enhancement failed: com.itheima.domain.Dict
org.springframework.orm.hibernate5.HibernateSystemException: HHH000142: Javassist Enhancement failed: com.itheima.domain.Dict; nested exception is
org.hibernate.HibernateException: HHH000142: Javassist Enhancement failed: com.itheima.domain.Dict
解决方法
错误是Dict类无法持久化,不能转换为代理对象。因为lib包中有多个javassist-3.xxx-GA.jar。删除低版本的jar包,只保留一个就好了。