qlSessionFactoryBean.class 类文件具有错误的版本 61.0, 应为 55.0
时间: 2023-11-06 13:57:02 浏览: 57
org/mybatis/spring/SqlSessionFactoryBean类文件具有错误的版本61.0,而应该是55.0。这个错误的原因可能是你在SSM项目中使用了不兼容的Mybatis-Spring依赖版本。Mybatis-Spring3.0版本只适用于Spring6.0,而Spring6.0只能在Java17版本上运行。如果你的项目还在使用Spring5.x等版本,请将Mybatis-Spring依赖版本更改为2.x版本。你可以使用以下解决方案来解决这个问题:
1. 修改Mybatis-Spring依赖版本为2.x版本。将以下代码添加到你的项目的pom.xml文件中:
```xml
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>2.1.1</version>
</dependency>
```
通过使用2.x版本的Mybatis-Spring依赖,你将能够解决类文件版本错误的问题。