SpringBoot整合ShardingJDBC启动报错Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required

刚开始搭建的是springBoot+mybatisplus,项目是能正常启动的,引入ShardingJDBC后,启动报Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

解决方法:修改ShardingJDBC的版本,我这里改成4.0.0-RC1就能启动了SpringBoot整合ShardingJDBC启动报错Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required_第1张图片

你可能感兴趣的:(spring,boot,sharding)