Unable to locate Spring NamespaceHandler for XML schema namespace shardingsphere

照着官网给的例子做sharding读写分离
启动包如下错误
Unable to locate Spring NamespaceHandler for XML schema namespace [http://shardingsphere.apache.org/schema/shardingsphere/sharding]

其实官网还有一个namespace包 要导入

        <dependency>
            <groupId>org.apache.shardingsphere</groupId>
            <artifactId>sharding-jdbc-core</artifactId>
            <version>4.0.0-RC3</version>
        </dependency>

        <dependency>
            <groupId>org.apache.shardingsphere</groupId>
            <artifactId>sharding-jdbc-spring-namespace</artifactId>
            <version>4.0.0-RC3</version>
        </dependency>
posted @ 2019-12-12 20:05  慢慢行  阅读(21)  评论(0编辑  收藏  举报