java.lang.ClassCastException: $Proxy6 cannot be cast to com.vip.core.*

1、java.lang.ClassCastException: $Proxy6 cannot be cast to com.vip.core.service.StudentService.impl.StudentServiceImpl
方法:
ICMSDictService dictService = (CMSDictServiceImpl)context.getBean("ICMSDictService");
将上面获取到的Object强制转行为他的借口对象就可以了
ICMSDictService dictService = (ICMSDictService)context.getBean("ICMSDictService");


此处是因为我在用SSI框架时候再linstener中加载系统参数,出现的错误!

版权声明:本文为gaohuanteng原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。