使用spring boot的两种方法:

A:继承spring-boot-starter-parent项目
  这种方式很简单,只需要在POM里面添加parent父工程即可。

B: 如果你不喜欢继承spring-boot-starter-parent POM的方式,需要使用公司的标准parent(而parent只能有一个),
或者比较倾向显示声明所有Maven配置。你可以使用一个scope=import导入的方式使用Spring Boot

<dependencyManagement> 
  <dependencies> 
    <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-dependencies</artifactId> 
      <version>1.3.0.M5</version> 
      <type>pom</type> 
      <scope>import</scope> 
    </dependency> 
  </dependencies> 
</dependencyManagement>

 

相关文章:

  • 2021-06-12
  • 2022-02-22
  • 2022-12-23
  • 2021-09-02
  • 2022-12-23
  • 2022-03-07
  • 2021-06-13
  • 2021-12-19
猜你喜欢
  • 2021-04-24
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案