日期:2014-05-20  浏览次数:20922 次

【紧急求助】SSH框架下,把Hibernate和Spring的包升级了一下,结果代码里面全是警告!
SSH框架下,把Hibernate3.1.1和Spring1.2.8的包升级成3.3.2和2.5.6,结果代码里面全是警告!
希望高手们指点一下,谢谢大侠们!!
警告提示如下:

Severity and Description Path Resource Location Creation Time Id
Type safety: The expression of type new HibernateCallback(){} needs unchecked conversion to conform to HibernateCallback<T>


Severity and Description Path Resource Location Creation Time Id
The argument of type String[] should explicitly be cast to Object[] for the invocation of the varargs method find(String, Object...) from type HibernateTemplate. It could alternatively be cast to Object for a varargs invocation

------解决方案--------------------
警告不怕,看看提示信息以及默认的解决方案。ctrl+1
------解决方案--------------------
看看你的配置文件中的版本值改过来了没有