建立 Spring Boot 應用其實很簡單,新增基礎依賴包,有以下兩種方式
1. 繼承spring-boot-starter-parent專案
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.6.RELEASE
</version>
</parent>
2. 匯入spring-boot-dependencies專案依賴
<dependencyManagement>
<dependencies>
<dependency>
spring-boot-dependencies
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencyManagement>
或者去 https://start.spring.io/ 快速生成,祝你好運
建立 Spring Boot 應用其實很簡單,新增基礎依賴包,有以下兩種方式
1. 繼承spring-boot-starter-parent專案
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.6.RELEASE
</version>
</parent>
2. 匯入spring-boot-dependencies專案依賴
<dependencyManagement>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-dependencies
</artifactId>
<version>
1.5.6.RELEASE
</version>
<type>
pom
</type>
<scope>
import
</scope>
</dependency>
</dependencyManagement>
或者去 https://start.spring.io/ 快速生成,祝你好運