You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/08/14 08:41:21 UTC

[GitHub] [shardingsphere] sim-wangyan opened a new issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

sim-wangyan opened a new issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840


   spring-boot.2.2.9.RELEASE no problem


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] szlzhm edited a comment on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
szlzhm edited a comment on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701100713


   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3
   总是出现下面错误
   Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.util.Assert.notNull(Assert.java:201) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:122) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:73) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) ~[spring-tx-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    ... 30 common frames omitted


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] sim-wangyan commented on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
sim-wangyan commented on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-673997843


   springboot2.3.x, 现在整合了jdbcTemplate和shardingshpere的框架或应用,改成在监听里注入jdbcTemplate就OK
   
   
   
   发自我的iPhone
   
   
   ------------------ Original ------------------
   From: 邱鹿 Lucas <notifications@github.com&gt;
   Date: Fri,Aug 14,2020 5:36 PM
   To: apache/shardingsphere <shardingsphere@noreply.github.com&gt;
   Cc: Sim Wang <8966188@qq.com&gt;, Mention <mention@noreply.github.com&gt;
   Subject: Re: [apache/shardingsphere] how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1 (#6840)
   
   
   
   
   
    
   @sim-wangyan Hi, Please show us more detail. And what problem did you meet.
    
   —
   You are receiving this because you were mentioned.
   Reply to this email directly, view it on GitHub, or unsubscribe.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] szlzhm edited a comment on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
szlzhm edited a comment on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701100713


   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3
   pom文件如下"
   <pre>
   <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-parent</artifactId>
    <version>2.3.2.RELEASE</version>
    </parent>
   
    <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
   
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
    </dependency>
   
    <dependency>
    <groupId>com.alibaba.csp</groupId>
    <artifactId>sentinel-datasource-nacos</artifactId>
   
    <exclusions>
    <exclusion>
    <groupId>com.alibaba.nacos</groupId>
    <artifactId>nacos-client</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-openfeign</artifactId>
    </dependency>
    <!--sharejdbc begin -->
   <!-- <dependency>
    <groupId>org.mybatis.spring.boot</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
    <version>2.1.3</version>
    </dependency>-->
   
    <dependency>
    <groupId>com.baomidou</groupId>
    <artifactId>mybatis-plus-boot-starter</artifactId>
    <version>3.4.0</version>
    </dependency>
   
    <dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP</artifactId>
    <version>3.4.2</version>
    </dependency>
   
    <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.47</version>
    </dependency>
    <dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
    <version>4.1.0</version>
    </dependency>
   <!-- <dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.10</version>
    </dependency>-->
    <!-- <dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>sharding-jdbc-core</artifactId>
    <version>4.1.0</version>
    </dependency>-->
    <!-- sharejdbc end-->
   
    </dependencies>
    <dependencyManagement>
    <dependencies>
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.2.3.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.3.2.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dependencies</artifactId>
    <version>Hoxton.SR8</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    </dependencies>
    </dependencyManagement>
   </pre>
   "
   总是出现下面错误
   Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.util.Assert.notNull(Assert.java:201) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:122) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:73) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) ~[spring-tx-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    ... 30 common frames omitted`


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] szlzhm edited a comment on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
szlzhm edited a comment on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701100713


   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3
   pom文件如下
   <pre>
   <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-parent</artifactId>
    <version>2.3.2.RELEASE</version>
    </parent>
   
    <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
   
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
    </dependency>
   
    <dependency>
    <groupId>com.alibaba.csp</groupId>
    <artifactId>sentinel-datasource-nacos</artifactId>
   
    <exclusions>
    <exclusion>
    <groupId>com.alibaba.nacos</groupId>
    <artifactId>nacos-client</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-openfeign</artifactId>
    </dependency>
    <!--sharejdbc begin -->
   <!-- <dependency>
    <groupId>org.mybatis.spring.boot</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
    <version>2.1.3</version>
    </dependency>-->
   
    <dependency>
    <groupId>com.baomidou</groupId>
    <artifactId>mybatis-plus-boot-starter</artifactId>
    <version>3.4.0</version>
    </dependency>
   
    <dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP</artifactId>
    <version>3.4.2</version>
    </dependency>
   
    <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.47</version>
    </dependency>
    <dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
    <version>4.1.0</version>
    </dependency>
   <!-- <dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.10</version>
    </dependency>-->
    <!-- <dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>sharding-jdbc-core</artifactId>
    <version>4.1.0</version>
    </dependency>-->
    <!-- sharejdbc end-->
   
    </dependencies>
    <dependencyManagement>
    <dependencies>
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.2.3.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.3.2.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dependencies</artifactId>
    <version>Hoxton.SR8</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    </dependencies>
    </dependencyManagement>
   </pre>
   总是出现下面错误
   Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.util.Assert.notNull(Assert.java:201) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:122) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:73) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) ~[spring-tx-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    ... 30 common frames omitted


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] Lucas-307 commented on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
Lucas-307 commented on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-673987524


   @sim-wangyan Hi, Please show us more detail. And what problem did you meet.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] sim-wangyan commented on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
sim-wangyan commented on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-673991272


   运行到JdbcTemplateConfiguration就卡死了,springboot 2.3.x都有这现象,应该是springboot 的坑
   
   
   ------------------ Original ------------------
   From: 邱鹿 Lucas <notifications@github.com&gt;
   Date: Fri,Aug 14,2020 5:36 PM
   To: apache/shardingsphere <shardingsphere@noreply.github.com&gt;
   Cc: Sim Wang <8966188@qq.com&gt;, Mention <mention@noreply.github.com&gt;
   Subject: Re: [apache/shardingsphere] how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1 (#6840)
   
   
   
   
   
    
   @sim-wangyan Hi, Please show us more detail. And what problem did you meet.
    
   —
   You are receiving this because you were mentioned.
   Reply to this email directly, view it on GitHub, or unsubscribe.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] sim-wangyan edited a comment on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
sim-wangyan edited a comment on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701128967


   maybe any db framework should set the datasource or jdbcTemplate at the child class of ApplicationListener<ApplicationStartedEvent>
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人:                                                                                                                        "apache/shardingsphere"                                                                                    <notifications@github.com&gt;;
   发送时间:&nbsp;2020年9月30日(星期三) 上午9:10
   收件人:&nbsp;"apache/shardingsphere"<shardingsphere@noreply.github.com&gt;;
   抄送:&nbsp;"风之狼"<8966188@qq.com&gt;;"Mention"<mention@noreply.github.com&gt;;
   主题:&nbsp;Re: [apache/shardingsphere] how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1 (#6840)
   
   
   
   
   
    
   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3
    
   —
   You are receiving this because you were mentioned.
   Reply to this email directly, view it on GitHub, or unsubscribe.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] sim-wangyan commented on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
sim-wangyan commented on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701128967


   maybe any db framework should set the&nbsp; datasource or jdbcTemplate&nbsp; at the child class of ApplicationListener<ApplicationStartedEvent&gt;
   
   
   
   
   ------------------&nbsp;原始邮件&nbsp;------------------
   发件人:                                                                                                                        "apache/shardingsphere"                                                                                    <notifications@github.com&gt;;
   发送时间:&nbsp;2020年9月30日(星期三) 上午9:10
   收件人:&nbsp;"apache/shardingsphere"<shardingsphere@noreply.github.com&gt;;
   抄送:&nbsp;"风之狼"<8966188@qq.com&gt;;"Mention"<mention@noreply.github.com&gt;;
   主题:&nbsp;Re: [apache/shardingsphere] how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1 (#6840)
   
   
   
   
   
    
   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3
    
   —
   You are receiving this because you were mentioned.
   Reply to this email directly, view it on GitHub, or unsubscribe.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] Lucas-307 commented on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
Lucas-307 commented on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-674003728


   @sim-wangyan **For English only**, Thank you.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] terrymanu closed issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
terrymanu closed issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840


   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] szlzhm commented on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
szlzhm commented on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701100713


   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] szlzhm edited a comment on issue #6840: how to run spirng-boot.2.3.2.RELEASE with sharding-jdbc-spring-boot-starter.4.1.1

Posted by GitBox <gi...@apache.org>.
szlzhm edited a comment on issue #6840:
URL: https://github.com/apache/shardingsphere/issues/6840#issuecomment-701100713


   可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3
   pom文件如下
   
   <parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-parent</artifactId>
    <version>2.3.2.RELEASE</version>
    </parent>
   
    <dependencies>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
    </dependency>
   
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
    </dependency>
   
    <dependency>
    <groupId>com.alibaba.csp</groupId>
    <artifactId>sentinel-datasource-nacos</artifactId>
   
    <exclusions>
    <exclusion>
    <groupId>com.alibaba.nacos</groupId>
    <artifactId>nacos-client</artifactId>
    </exclusion>
    </exclusions>
    </dependency>
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
    </dependency>
    <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-openfeign</artifactId>
    </dependency>
    <!--sharejdbc begin -->
   <!-- <dependency>
    <groupId>org.mybatis.spring.boot</groupId>
    <artifactId>mybatis-spring-boot-starter</artifactId>
    <version>2.1.3</version>
    </dependency>-->
   
    <dependency>
    <groupId>com.baomidou</groupId>
    <artifactId>mybatis-plus-boot-starter</artifactId>
    <version>3.4.0</version>
    </dependency>
   
    <dependency>
    <groupId>com.zaxxer</groupId>
    <artifactId>HikariCP</artifactId>
    <version>3.4.2</version>
    </dependency>
   
    <dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>5.1.47</version>
    </dependency>
    <dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>sharding-jdbc-spring-boot-starter</artifactId>
    <version>4.1.0</version>
    </dependency>
   <!-- <dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>druid-spring-boot-starter</artifactId>
    <version>1.1.10</version>
    </dependency>-->
    <!-- <dependency>
    <groupId>org.apache.shardingsphere</groupId>
    <artifactId>sharding-jdbc-core</artifactId>
    <version>4.1.0</version>
    </dependency>-->
    <!-- sharejdbc end-->
   
    </dependencies>
    <dependencyManagement>
    <dependencies>
    <dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.2.3.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-dependencies</artifactId>
    <version>2.3.2.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-dependencies</artifactId>
    <version>Hoxton.SR8</version>
    <type>pom</type>
    <scope>import</scope>
    </dependency>
   
    </dependencies>
    </dependencyManagement>
   
   总是出现下面错误
   Caused by: java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
    at org.springframework.util.Assert.notNull(Assert.java:201) ~[spring-core-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.mybatis.spring.support.SqlSessionDaoSupport.checkDaoConfig(SqlSessionDaoSupport.java:122) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:73) ~[mybatis-spring-2.0.5.jar:2.0.5]
    at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44) ~[spring-tx-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) ~[spring-beans-5.2.8.RELEASE.jar:5.2.8.RELEASE]
    ... 30 common frames omitted


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org