关于Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required的报错(springboot整合Mybatis)

it2022-05-09  34

解决方法之一:

pox.xml文件没有添加spring的mybatis的启动器依赖

<dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.1</version> </dependency>

 


最新回复(0)