noroadzh commented on issue #30551:
URL: 
https://github.com/apache/shardingsphere/issues/30551#issuecomment-2009600910

   > * In fact, according to the CI at 
https://github.com/dynamic-datasource/dynamic-datasource-samples/tree/master/third-part-samples/shardingsphere-sample/shardingsphere-jdbc-5.x-core-sample
 , there is no conflict when combined with 
`org.apache.shardingsphere:shardingsphere-jdbc-core:5.4.1`, 
`org.springframework.boot:spring-boot-starter-web:2.7.18` and 
`com.baomidou:dynamic-datasource-spring-boot-starter:4.3.0`  .
   > * Can you create a git with minimal unit tests using h2database?
   
   Because it is the first time to use H2database, may be some do not 
understand the use, but the project inside the use of the driver, or the same 
error!
   
   The error is as follows:
    `com.zaxxer.hikari.HikariConfig           : Failed to load driver class 
org.apache.shardingsphere.driver.ShardingSphereDriver from HikariConfig class 
classloader sun.misc.Launcher$AppClassLoader@18b4aac2
   2024-03-20 21:39:30.097  WARN 41347 --- [           main] 
ConfigServletWebServerApplicationContext : Exception encountered during context 
initialization - cancelling refresh attempt: 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataMonitorServiceExecute': Injection of resource dependencies 
failed; nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'dataMonitorInfoMapper' defined in file 
[/Users/noroadzh/test/java/testSharding5/target/classes/com/example/sharding5/dao/mapper/oracle/DataMonitorInfoMapper.class]:
 Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; 
nested exception is 
org.springframework.beans.factory.UnsatisfiedDependencyException: Error 
creating bean with name 'sqlSessionFactory' defined in class path resource 
[com/baomidou/mybatisplus/autoconfigure/MybatisPlusAutoConfiguration.class]: 
Unsatisfied dependency expressed through method 'sq
 lSessionFactory' parameter 0; nested exception is 
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'dataSource' defined in class path resource 
[com/baomidou/dynamic/datasource/spring/boot/autoconfigure/DynamicDataSourceAutoConfiguration.class]:
 Invocation of init method failed; nested exception is 
java.lang.RuntimeException: Failed to load driver class 
org.apache.shardingsphere.driver.ShardingSphereDriver in either of HikariConfig 
class loader or Thread context classloader`
   
   **project git address:**
   [https://github.com/noroadzh/sharding5.git](url)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to