解决springboot jar包冲突

时间:2023-12-23 09:38:14

直接导入springboot父项依赖,其它相关springboot依赖version不用写,由spring自动依赖.

<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.5.13.RELEASE</version>
</parent>
<dependencies>

    <dependency>

    <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-web</artifactId>
  </dependency>
</dependencies>