Property ‘sqlSessionFactory‘ or ‘sqlSessionTemplate‘ are required 处理方法

报错信息如下:

ava.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required

在这里插入图片描述
1 在pom.xml中导入mybatis-spring-boot-starter的相关依赖

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

你可能感兴趣的:(java)