官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 繁峙县| 建昌县| 项城市| 孝昌县| 邮箱| 郎溪县| 雅江县| 内丘县| 上饶市| 蒲江县| 麦盖提县| 南和县| 开鲁县| 阿尔山市| 嵩明县| 吉首市| 高要市| 泰兴市| 丰县| 垣曲县| 五台县| 新竹市| 连州市| 遂昌县| 灵武市| 南部县| 休宁县| 西畴县| 嘉禾县| 阿巴嘎旗| 定远县| 金昌市| 谷城县| 五寨县| 深圳市| 永清县| 桂东县| 沁源县| 古丈县| 福贡县| 军事|