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中加载系统参数,出现的错误!
方法:
ICMSDictService dictService = (CMSDictServiceImpl)context.getBean("ICMSDictService");
将上面获取到的Object强制转行为他的借口对象就可以了
ICMSDictService dictService = (ICMSDictService)context.getBean("ICMSDictService");
此处是因为我在用SSI框架时候再linstener中加载系统参数,出现的错误!