Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in URL [jar:file:/usr/local/tomcat/webapps/nems-hbgl/WEB-INF/lib/iplat4j-core-6.4.1.jar!/spring/framework/context/platApplicationContext-nodb-off.xml]: Cannot resolve reference to bean 'dataSource1' while setting bean property 'targetDataSources' with key [TypedStringValue: value [dataSource1], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource1' defined in URL [jar:file:/usr/local/tomcat/webapps/nems-hbgl/WEB-INF/lib/iplat4j-core-6.4.1.jar!/spring/framework/context/platApplicationContext-db-multidb-dbcp.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.RuntimeException: Failed to load driver class in either of HikariConfig class loader or Thread context classloader
时间: 2024-05-01 15:19:09 浏览: 153
Tess, if broken it is fix it you should
根据你提供的信息,这是一个Spring Bean创建异常,具体原因是在设置bean属性'targetDataSources'时,无法解析对bean 'dataSource1'的引用。嵌套的异常是另一个Spring Bean创建异常,其中设置属性值时出错。在这个异常中,有一个属性批处理更新异常,其中包含一个属性访问异常。异常的原因是属性'driverClassName'抛出了异常,原因是无法加载驱动程序类。可能是由于驱动程序类没有正确地添加到类路径中或驱动程序类的名称不正确。建议检查驱动程序类是否正确添加到类路径中,并检查驱动程序类名称是否正确。同时,需要检查bean定义文件中是否正确定义了'dataSource1' bean。
阅读全文