- 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.
推薦閱讀
- Advanced Quantitative Finance with C++
- 玩轉(zhuǎn)Scratch少兒趣味編程
- Hyper-V 2016 Best Practices
- 網(wǎng)頁設(shè)計與制作教程(HTML+CSS+JavaScript)(第2版)
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優(yōu)化計算
- Cassandra Data Modeling and Analysis
- 零基礎(chǔ)學(xué)MQL:基于EA的自動化交易編程
- Python貝葉斯分析(第2版)
- Big Data Analytics
- SQL Server 2016數(shù)據(jù)庫應(yīng)用與開發(fā)
- Visual C#通用范例開發(fā)金典
- 利用Python進行數(shù)據(jù)分析
- Building Machine Learning Systems with Python(Second Edition)
- Visual Studio 2015高級編程(第6版)
- Python程序設(shè)計與算法基礎(chǔ)教程(第2版)(微課版)