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

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.

主站蜘蛛池模板: 城步| 长阳| 息烽县| 沈阳市| 拜城县| 伊宁县| 三亚市| 伽师县| 长治市| 江达县| 丰顺县| 西昌市| 台东市| 盐山县| 吉首市| 正定县| 枣庄市| 保定市| 伊川县| 旌德县| 澄迈县| 连江县| 诏安县| 柏乡县| 澎湖县| 扎兰屯市| 徐州市| 石屏县| 常山县| 全椒县| 铜鼓县| 博湖县| 辉南县| 博湖县| 株洲市| 南阳市| 六枝特区| 湾仔区| 建始县| 万载县| 耿马|