springmvc+mybatis运行时报错
org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'org...
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.mybatis.spring.mapper.MapperScannerConfigurer#0' defined in file [D:\Tomcat 6.0\tomcat-6.0.37\webapps\SSMTest\WEB-INF\classes\com\guoyan\config\spring\applicationContext-commons.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\Tomcat 6.0\tomcat-6.0.37\webapps\SSMTest\WEB-INF\classes\com\guoyan\config\spring\applicationContext-commons.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [D:\Tomcat 6.0\tomcat-6.0.37\webapps\SSMTest\WEB-INF\classes\com\guoyan\config\spring\applicationContext-commons.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [jdbc.driver.OracleDriver] 展开
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [jdbc.driver.OracleDriver] 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询