- 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.
推薦閱讀
- Word排版技術大全(第2版)
- WPS Office 2019 高效辦公
- Word 2003辦公應用實戰從入門到精通
- 對比Excel,輕松學習Python報表自動化
- 非常Easy:Excel行政與文秘高效辦公
- Minecraft創客制作:用樂高、3D打印、Arduino等創建Minecraft真實世界
- Flash CS6核心應用案例教程(全彩慕課版)
- 快速編碼:高效使用MicrosoftVisualStudio
- PowerPoint!讓教學更精彩:PPT課件高效制作(全彩)
- 新編Excel公式、函數與圖表應用大全(2016實戰精華版)
- INSTANT Prezi Starter
- Word/Excel/PPT 2016辦公應用從入門到精通
- 一看即會:電腦組裝·系統安裝·日常維護與故障排除(超值視頻教學版)
- Excel2010辦公專家從入門到精通(精編版)
- PowerPivot for Advanced Reporting and Dashboards