pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.yaozhitech</groupId>
  6. <artifactId>spring5</artifactId>
  7. <packaging>jar</packaging>
  8. <version>0.1.0</version>
  9. <name>${project.artifactId}</name>
  10. <description>spring5 demo</description>
  11. <!-- Spring Boot 启动父依赖 -->
  12. <parent>
  13. <groupId>org.springframework.boot</groupId>
  14. <artifactId>spring-boot-starter-parent</artifactId>
  15. <version>2.2.1.RELEASE</version>
  16. <relativePath />
  17. </parent>
  18. <properties>
  19. <maven.compiler.source>1.8</maven.compiler.source>
  20. <maven.compiler.target>1.8</maven.compiler.target>
  21. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  22. <spring-cloud.version>2.2.0.RELEASE</spring-cloud.version>
  23. </properties>
  24. <dependencyManagement>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-dependencies</artifactId>
  29. <version>Hoxton.RELEASE</version>
  30. <type>pom</type>
  31. <scope>import</scope>
  32. </dependency>
  33. </dependencies>
  34. </dependencyManagement>
  35. <dependencies>
  36. <!--自省和监控的集成功能-->
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-actuator</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter</artifactId>
  44. </dependency>
  45. <!-- 网关 -->
  46. <dependency>
  47. <groupId>org.springframework.cloud</groupId>
  48. <artifactId>spring-cloud-starter-gateway</artifactId>
  49. </dependency>
  50. <!-- hystrix -->
  51. <!-- <dependency> -->
  52. <!-- <groupId>org.springframework.cloud</groupId> -->
  53. <!-- <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> -->
  54. <!-- </dependency> -->
  55. <!-- 最新推荐的断路器 -->
  56. <dependency>
  57. <groupId>org.springframework.cloud</groupId>
  58. <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId>
  59. </dependency>
  60. <!-- Spring Boot Web Flux 依赖 -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-webflux</artifactId>
  64. </dependency>
  65. <!-- Spring Boot 响应式 Redis 依赖 -->
  66. <dependency>
  67. <groupId>org.springframework.boot</groupId>
  68. <artifactId>spring-boot-starter-data-redis-reactive</artifactId>
  69. </dependency>
  70. <!-- Spring test 依赖 -->
  71. <dependency>
  72. <groupId>org.springframework.boot</groupId>
  73. <artifactId>spring-boot-starter-test</artifactId>
  74. <scope>test</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>junit</groupId>
  78. <artifactId>junit</artifactId>
  79. <scope>test</scope>
  80. </dependency>
  81. <!-- 集成wireMock来实现mock请求响应。wireMock会自动构建一个虚拟远程服务 -->
  82. <dependency>
  83. <groupId>org.springframework.cloud</groupId>
  84. <artifactId>spring-cloud-contract-wiremock</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. <!-- 提供打包预定义数据服务 -->
  88. <dependency>
  89. <groupId>org.springframework.cloud</groupId>
  90. <artifactId>spring-cloud-starter-contract-stub-runner</artifactId>
  91. <scope>test</scope>
  92. </dependency>
  93. <!-- 自动生成单元测试代码 -->
  94. <dependency>
  95. <groupId>org.springframework.cloud</groupId>
  96. <artifactId>spring-cloud-starter-contract-verifier</artifactId>
  97. <scope>test</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.github.tomakehurst</groupId>
  101. <artifactId>wiremock-standalone</artifactId>
  102. <version>2.18.0</version>
  103. <scope>test</scope>
  104. </dependency>
  105. <!-- lombok依赖包 -->
  106. <dependency>
  107. <groupId>org.projectlombok</groupId>
  108. <artifactId>lombok</artifactId>
  109. </dependency>
  110. </dependencies>
  111. </project>