2016-04-07 10:30:02 [ERROR] - org.springframework.web.context.ContextLoader -ContextLoader.java(318) -Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'baseDaoImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.springTest.util.DBUtil com.springTest.baseDaoImpl.BaseDaoImpl.util; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util' defined in file [D:\360安全浏览器下载\apache-tomcat-7.0.52-windows-x64\apache-tomcat-7.0.52\webapps\student\WEB-INF\classes\com\springTest\util\DBUtil.class]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.jdbc.core.simple.SimpleJdbcTemplate' to required type 'javax.sql.DataSource' for property 'simpleJdbcTemplate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.jdbc.core.simple.SimpleJdbcTemplate] to required type [javax.sql.DataSource] for property 'simpleJdbcTemplate': no matching editors or conversion strategy found
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:287)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.springTest.util.DBUtil com.springTest.baseDaoImpl.BaseDaoImpl.util; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util' defined in file [D:\360安全浏览器下载\apache-tomcat-7.0.52-windows-x64\apache-tomcat-7.0.52\webapps\student\WEB-INF\classes\com\springTest\util\DBUtil.class]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.jdbc.core.simple.SimpleJdbcTemplate' to required type 'javax.sql.DataSource' for property 'simpleJdbcTemplate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.jdbc.core.simple.SimpleJdbcTemplate] to required type [javax.sql.DataSource] for property 'simpleJdbcTemplate': no matching editors or conversion strategy found
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:513)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:92)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:284)
... 27 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'util' defined in file [D:\360安全浏览器下载\apache-tomcat-7.0.52-windows-x64\apache-tomcat-7.0.52\webapps\student\WEB-INF\classes\com\springTest\util\DBUtil.class]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'org.springframework.jdbc.core.simple.SimpleJdbcTemplate' to required type 'javax.sql.DataSource' for property 'simpleJdbcTemplate'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.jdbc.core.simple.SimpleJdbcTemplate] to required type [javax.sql.DataSource] for property 'simpleJdbcTemplate': no matching editors or conversion strategy found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
Caused by: java.lang.IllegalStateException: Cannot convert value of type [org.springframework.jdbc.core.simple.SimpleJdbcTemplate] to required type [javax.sql.DataSource] for property 'simpleJdbcTemplate': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:247)
at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:470)