apache / shardingsphere

Distributed SQL transaction & query engine for data sharding, scaling, encryption, and more - on any database.
Apache License 2.0
19.8k stars 6.7k forks source link

shardingsphere-jdbc-core integration druid error #32419

Closed shining-stars-lk closed 1 month ago

shining-stars-lk commented 1 month ago

Question

An error occurred after the shardingsphere-jdbc-core integration druid was started

The error is

nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

I processed it according to the instructions in the document without referring to starer

Document address: https://www.bookstack.cn/read/shardingsphere-5.1.0-zh/4bbabb9801ce9847.md

It still didn't work out.

version

springboot version

spring-boot-2.3.12.RELEASE

other versions

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid</artifactId>
    <version>1.1.10</version>
</dependency>

<dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>shardingsphere-jdbc-core</artifactId>
    <version>5.3.2</version>
    <exclusions>
        <exclusion>
            <artifactId>logback-classic</artifactId>
            <groupId>ch.qos.logback</groupId>
        </exclusion>
        <exclusion>
            <artifactId>HikariCP</artifactId>
            <groupId>com.zaxxer</groupId>
        </exclusion>
    </exclusions>
</dependency>
linghengqian commented 1 month ago
linghengqian commented 1 month ago