- Mastering Spring Boot 2.0
- Dinesh Rajput
- 100字
- 2021-06-25 21:29:12
Setting up Spring Boot with Maven
Spring Boot is compatible with Apache Maven 3.2 or above. If your machine doesn't already have Java 8 or above, first download Java 8 or above from Oracle's official website:
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
And if you don't already have Maven, first download it from https://maven.apache.org/; Ubuntu users can run sudo apt-get install maven. Let's see the following Spring Boot dependencies with the org.springframework.boot groupId:
<?xml version="1.0" encoding="UTF-8"?> <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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.2.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependencies> ... ... </project>
This .pom file is the minimum requirement for the Spring Boot 2.0 application.
Let's see the Gradle setup for the Spring Boot application.
推薦閱讀
- 辦公軟件高級應(yīng)用實用教程
- Word/Excel/PowerPoint 2013三合一高效辦公超級手冊
- Excel 2019公式與函數(shù)應(yīng)用大全(視頻教學(xué)版)
- 隨身查:從原始數(shù)據(jù)到完美Excel圖表
- 商務(wù)PPT視覺設(shè)計高手18課
- Excel函數(shù)與公式標(biāo)準(zhǔn)教程(實戰(zhàn)微課版)
- 計算機聯(lián)鎖圖冊(第二版)
- Excel 2019應(yīng)用大全
- WPS Office商務(wù)辦公從新手到高手
- Excel 2013超級應(yīng)用大全(實戰(zhàn)案例版)
- OpenCV Essentials
- Excel高效辦公:公司表格設(shè)計(修訂版)
- LoadRunner性能測試巧匠訓(xùn)練營
- Excel經(jīng)典教程:公式與函數(shù)
- 零基礎(chǔ)學(xué)游戲UI設(shè)計