搭建springmvc项目报java.lang.NoClassDefFoundError: org/mybatis/spring/mapper/MapperFactoryBean错误
解决方法:
1. 确认maven有没添加mybatis-spring.jar
2. 确认maven有没添加spring-jdbc
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>${org.springframework-version}</version>
</dependency>