我是靠谱客的博主 魔幻康乃馨,这篇文章主要介绍maven依赖包总结,现在分享给大家,希望可以做个参考。

 1. swagger:后端代码api

<!-- swagger -->
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger-ui</artifactId>
    <version>2.5.0</version>
</dependency>
<dependency>
    <groupId>io.springfox</groupId>
    <artifactId>springfox-swagger2</artifactId>
    <version>2.5.0</version>
</dependency>

(注:需要两个依赖。springfox-swagger2:swagger依赖 ; springfox-swagger-ui:web的ui页面)

 

2. junit单元测试:用于写测试类、@RunWith 注解

<!--junit单元测试-->
<dependency>
    <groupId>junit</groupId>
    <artifactId>junit</artifactId>
    <version>4.13</version>
    <scope>test</scope>
</dependency>

 

3. postgresql数据库依赖

<!--postgresql数据库-->
<dependency>
    <groupId>org.postgresql</groupId>
    <artifactId>postgresql</artifactId>
    <version>42.2.5</version>
</dependency>
spring:
  data

最后

以上就是魔幻康乃馨最近收集整理的关于maven依赖包总结的全部内容,更多相关maven依赖包总结内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(105)

评论列表共有 0 条评论

立即
投稿
返回
顶部