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/11/15 04:53:49
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,放到工程的类路径下