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

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.

主站蜘蛛池模板: 通州区| 和静县| 白玉县| 玛沁县| 安塞县| 万宁市| 宜阳县| 孙吴县| 乌拉特前旗| 金湖县| 新晃| 琼结县| 丰顺县| 宿松县| 安泽县| 临沧市| 桐乡市| 霍林郭勒市| 平安县| 星子县| 天祝| 江川县| 枞阳县| 靖西县| 介休市| 古田县| 油尖旺区| 南部县| 高碑店市| 牟定县| 仪征市| 万盛区| 铁岭县| 休宁县| 冕宁县| 容城县| 枞阳县| 乐山市| 凤翔县| 荆州市| 那坡县|