查看pom.xml中mybatis-plus配置
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatisplus-spring-boot-starter</artifactId>
<version>1.0.5</version>
</dependency>
如为以上配置,其不自动注入sqlSessionFactory‘ or ‘sqlSessionTemplate,应改为:
<!-- 使用以下依赖便能解决问题 -->
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.1</version>
</dependency>
标签:sqlSessionFactory,sqlSessionTemplate,boot,报错,Mybatis,plus
From: https://www.cnblogs.com/lily-124/p/17198771.html