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

  • 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.

主站蜘蛛池模板: 仁布县| 中山市| 沁阳市| 镇安县| 大石桥市| 彭水| 巴南区| 霍州市| 扎囊县| 宜兰市| 固镇县| 大冶市| 仁怀市| 黑山县| 大悟县| 泰来县| 彰武县| 合肥市| 平定县| 天祝| 中牟县| 谢通门县| 福海县| 丰宁| 南昌市| 江源县| 海阳市| 莎车县| 当涂县| 南昌市| 芦山县| 宝清县| 郑州市| 庄浪县| 商南县| 蓝田县| 桐庐县| 许昌县| 楚雄市| 南丰县| 河北省|