org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'jdbcDataSource' defined in class path resource [ApplicationContext.xml.xml]:Error setting property values; nested exception is org.springframework.beans.Pr
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 19:53:18
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'jdbcDataSource' defined in class path resource [ApplicationContext.xml.xml]:Error setting property values; nested exception is org.springframework.beans.Pr
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'jdbcDataSource' defined in class path resource [ApplicationContext.xml.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 [oracle.jdbc.driver.OracleDriver]
org.springframework.beans.factory.BeanCreationException:Error creating bean with name 'jdbcDataSource' defined in class path resource [ApplicationContext.xml.xml]:Error setting property values; nested exception is org.springframework.beans.Pr
oracle的jdbc驱动jar包没有加到类路径下.比如下个ojdbc6.jar,放到工程的类路径下