- Spring 5.0 By Example
- Claudio Eduardo de Oliveira
- 85字
- 2021-06-24 19:17:37
Adding dependencies to pom.xml
Before we start the configuration, we need to add the required dependencies. These dependencies included Spring Fox in our project and offered many annotations to configure Swagger properly. Let's add these dependencies.
The new dependencies are in the pom.xml file:
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.7.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.7.0</version>
</dependency>
The first dependency is the core of Swagger with annotations and related kinds of stuff. Spring Fox Swagger UI dependency provides a rich interface in HTML which permits developers to interact with the APIs.
推薦閱讀
- Learn to Create WordPress Themes by Building 5 Projects
- 騰訊iOS測試實踐
- Mastering Entity Framework
- Hands-On Swift 5 Microservices Development
- 可解釋機器學習:模型、方法與實踐
- Unity 2018 Shaders and Effects Cookbook
- Procedural Content Generation for C++ Game Development
- UI設計全書(全彩)
- 單片機原理及應用技術
- OpenCV Android開發實戰
- 計算機系統解密:從理解計算機到編寫高效代碼
- SAS編程演義
- 軟件測試(慕課版)
- 零基礎C語言學習筆記
- Java程序設計基礎教程