Spring 坐标版本兼容问题

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.yandoit</groupId>
  <artifactId>SpringMvcSSMWeb</artifactId>
  <packaging>war</packaging>
  <version>1.0-SNAPSHOT</version>

  <dependencies>
<!--    <dependency>-->
<!--      <groupId>jakarta.servlet</groupId>-->
<!--      <artifactId>jakarta.servlet-api</artifactId>-->
<!--      <version>6.0.0</version>-->
<!--      <scope>provided</scope>-->
<!--    </dependency>-->

          <dependency>
              <groupId>javax.servlet</groupId>
              <artifactId>javax.servlet-api</artifactId>
              <version>3.1.0</version>
              <scope>provided</scope>
          </dependency>
    <dependency>
      <!--      这是SpringMvc处理json格式的坐标-->
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>2.9.0</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc</artifactId>
      <version>5.2.10.RELEASE</version>
<!--      <version>6.0.6</version>-->
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-jdbc</artifactId>
      <version>5.2.10.RELEASE</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-test</artifactId>
      <version>5.2.10.RELEASE</version>
    </dependency>
    <dependency>
      <groupId>org.mybatis</groupId>
      <artifactId>mybatis</artifactId>
<!--      <version>3.5.13</version>-->
      <version>3.5.6</version>
    </dependency>
    <dependency>
      <groupId>org.mybatis</groupId>
      <artifactId>mybatis-spring</artifactId>
      <version>1.3.0</version>
<!--      <version>3.0.1</version>-->
    </dependency>
    <dependency>
      <groupId>com.alibaba</groupId>
      <artifactId>druid</artifactId>
      <version>1.2.16</version>
    </dependency>
    <dependency>
      <groupId>com.mysql</groupId>
      <artifactId>mysql-connector-j</artifactId>
      <version>8.0.32</version>
    </dependency>
<!--    <dependency>-->
<!--      <groupId>mysql</groupId>-->
<!--      <artifactId>mysql-connector-java</artifactId>-->
<!--      <version>5.1.47</version>-->
<!--    </dependency>-->
    <!-- https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-core -->
    <!--    <dependency>-->
    <!--      <groupId>org.apache.tomcat.embed</groupId>-->
    <!--      <artifactId>tomcat-embed-core</artifactId>-->
    <!--      <version>10.1.7</version>-->
    <!--    </dependency>-->
    <dependency>
      <groupId>org.junit.jupiter</groupId>
      <artifactId>junit-jupiter-engine</artifactId>
      <version>5.5.2</version>
    </dependency>


  </dependencies>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <version>2.1</version>
        <configuration>
          <port>8080</port>
          <path>/</path>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>


<!--上面的坐标注释部分spring和mybatis相关坐标是不能够正确运行SpringMvc的版本部分,当我切换成非注释版本时可以正常运行,我不确定是否是版本兼容问题  不知道有没有dalao能帮我解答一下呀-->

首先是 mysql-connector-java 依赖,你这个实在是太老了,现在都更新到了 9。而且连坐标都变了。你使用的数据库版本是多少?

其次,我不理解你为什么会依赖 tomcat-embed-core 这个东西,这个是嵌入式 Tomcat 的东西。一般没人去用。而且,你这个项目也不是 spring-boot 项目。

感谢解答!
我还在学习Spring技术栈中 现在才学到SpringMvc
然后那个插件不管能否运行 我都没有用它 就是之前复制别人的坐标然后就给注释掉了 数据库用的8.0.3*应该是

就是目前如果我使用servlet-api 6*版本和spring-framework 6*版本 mybatis3.5.6就会出问题

要看具体问题是什么。