1.Unknown column '....' in 'field list'
该异常出现在sql执行时。原因是指定表中不包含'....'列。
2.java.lang.ClassCastException: $Proxy5
该异常发生在spring的
B eido=(B)factory.getBean("evmInfoDao");
表示该类型B为一个类,并非接口。
解决方案:声明接口interface A
B implements A
A eido=(A)factory.getBean("evmInfoDao");
这样就可以解决。
该异常出现在sql执行时。原因是指定表中不包含'....'列。
2.java.lang.ClassCastException: $Proxy5
该异常发生在spring的
B eido=(B)factory.getBean("evmInfoDao");
表示该类型B为一个类,并非接口。
解决方案:声明接口interface A
B implements A
A eido=(A)factory.getBean("evmInfoDao");
这样就可以解决。