ssm(springSpringMVCMybatis)整合用tomcat框架发布报错
ERROR 2019-01-06 20:30:10,993 org.springframework.web.context.ContextLoader:
Context initialization failed :org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'dataSource' defined in file
[E:\javaTool\eclipse\eclipseWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ssm\WEB-
INF\classes\spring\applicationContext-dao.xml]:
Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException:
Failed to convert property value of type [java.lang.String] to required type [java.sql.Driver] for property 'driver';
nested exception is java.lang.IllegalStateException:
Cannot convert value of type [java.lang.String] to required type [java.sql.Driver] for property 'driver': no matching editors or conversion strategy found
环境:
第一:使用的maven 3.6
第二:用的eclipse 最新版本
第三:用的mysql数据库 8.0
第四:用的Java10
第五:用的tomcat6.0