springBoot中引入

 <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.1.RELEASE</version>
        <relativePath/>
  </parent>

相当于引入一个父类版本的jar库,在以后的

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

中可不写version版本,因为有父类会自动匹配。

注意:父类没有的jar版本,还是要

<dependency>
    <groupId>mysql</groupId>
    <artifactId>mysql-connector-java</artifactId>
    <version>${mysql.version}</version>
</dependency>

样式引入

相关文章:

  • 2021-07-02
  • 2021-08-17
  • 2022-03-05
  • 2022-12-23
  • 2019-10-21
  • 2022-01-10
  • 2022-01-21
猜你喜欢
  • 2019-10-24
  • 2021-08-16
  • 2022-12-23
  • 2021-04-07
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案