Closed sim-wangyan closed 4 years ago
@sim-wangyan Hi, Please show us more detail. And what problem did you meet.
运行到JdbcTemplateConfiguration就卡死了,springboot 2.3.x都有这现象,应该是springboot 的坑
------------------ Original ------------------ From: 邱鹿 Lucas <notifications@github.com> Date: Fri,Aug 14,2020 5:36 PM To: apache/shardingsphere <shardingsphere@noreply.github.com> Cc: Sim Wang <8966188@qq.com>, Mention <mention@noreply.github.com> 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.
springboot2.3.x, 现在整合了jdbcTemplate和shardingshpere的框架或应用,改成在监听里注入jdbcTemplate就OK
发自我的iPhone
------------------ Original ------------------ From: 邱鹿 Lucas <notifications@github.com> Date: Fri,Aug 14,2020 5:36 PM To: apache/shardingsphere <shardingsphere@noreply.github.com> Cc: Sim Wang <8966188@qq.com>, Mention <mention@noreply.github.com> 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.
@sim-wangyan For English only, Thank you.
可否分享下怎样使用的吗,我这里总是失败。我用alibaba spring cloud 2.2.3 pom文件如下"
org.springframework.boot spring-boot-parent 2.3.2.RELEASE org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-actuator com.alibaba.cloud spring-cloud-starter-alibaba-nacos-discovery com.alibaba.csp sentinel-datasource-nacos com.alibaba.nacos nacos-client com.alibaba.cloud spring-cloud-starter-alibaba-sentinel org.springframework.cloud spring-cloud-starter-openfeign com.baomidou mybatis-plus-boot-starter 3.4.0 com.zaxxer HikariCP 3.4.2 mysql mysql-connector-java 5.1.47 org.apache.shardingsphere sharding-jdbc-spring-boot-starter 4.1.0 com.alibaba.cloud spring-cloud-alibaba-dependencies 2.2.3.RELEASE pom import org.springframework.boot spring-boot-dependencies 2.3.2.RELEASE pom import org.springframework.cloud spring-cloud-dependencies Hoxton.SR8 pom import
" 总是出现下面错误 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`
maybe any db framework should set the datasource or jdbcTemplate at the child class of ApplicationListener
------------------ 原始邮件 ------------------ 发件人: "apache/shardingsphere" <notifications@github.com>; 发送时间: 2020年9月30日(星期三) 上午9:10 收件人: "apache/shardingsphere"<shardingsphere@noreply.github.com>; 抄送: "风之狼"<8966188@qq.com>;"Mention"<mention@noreply.github.com>; 主题: 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.
spring-boot.2.2.9.RELEASE no problem