pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>csc-szls-parent</artifactId>
  7. <groupId>com.unissoft</groupId>
  8. <version>1.0-SNAPSHOT</version>
  9. <relativePath>../csc-szls-parent/pom.xml</relativePath>
  10. </parent>
  11. <modelVersion>4.0.0</modelVersion>
  12. <artifactId>csc-szls-gateway</artifactId>
  13. <description>网关gateway服务</description>
  14. <dependencies>
  15. <dependency>
  16. <groupId>org.springframework.cloud</groupId>
  17. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  18. </dependency>
  19. <!--链路追踪-->
  20. <dependency>
  21. <groupId>org.springframework.cloud</groupId>
  22. <artifactId>spring-cloud-starter-sleuth</artifactId>
  23. </dependency>
  24. <!--zipkin依赖-->
  25. <dependency>
  26. <groupId>org.springframework.cloud</groupId>
  27. <artifactId>spring-cloud-starter-zipkin</artifactId>
  28. </dependency>
  29. <!--feign(默认集成hystrix熔断器)-->
  30. <dependency>
  31. <groupId>org.springframework.cloud</groupId>
  32. <artifactId>spring-cloud-starter-openfeign</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.cloud</groupId>
  36. <artifactId>spring-cloud-starter-config</artifactId>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-actuator</artifactId>
  41. </dependency>
  42. <!--网关gateway-->
  43. <dependency>
  44. <groupId>org.springframework.cloud</groupId>
  45. <artifactId>spring-cloud-starter-gateway</artifactId>
  46. </dependency>
  47. <!--redis-->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-data-redis</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>io.springfox</groupId>
  54. <artifactId>springfox-swagger2</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>io.springfox</groupId>
  58. <artifactId>springfox-swagger-ui</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.projectlombok</groupId>
  62. <artifactId>lombok</artifactId>
  63. <optional>true</optional>
  64. </dependency>
  65. <!--hystrix熔断降级-->
  66. <dependency>
  67. <groupId>org.springframework.cloud</groupId>
  68. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  69. </dependency>
  70. <!--使用security-jwt-->
  71. <dependency>
  72. <groupId>org.springframework.security</groupId>
  73. <artifactId>spring-security-jwt</artifactId>
  74. </dependency>
  75. <!--jwt解析相关-->
  76. <dependency>
  77. <groupId>io.jsonwebtoken</groupId>
  78. <artifactId>jjwt</artifactId>
  79. <version>0.9.1</version>
  80. </dependency>
  81. </dependencies>
  82. <build>
  83. <plugins>
  84. <plugin>
  85. <groupId>org.springframework.boot</groupId>
  86. <artifactId>spring-boot-maven-plugin</artifactId>
  87. <configuration>
  88. <mainClass>com.unissoft.GatewayStart</mainClass>
  89. </configuration>
  90. </plugin>
  91. </plugins>
  92. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  93. <resources>
  94. <resource>
  95. <directory>src/main/java</directory>
  96. <includes>
  97. <include>**/*.properties</include>
  98. <include>**/*.xml</include>
  99. </includes>
  100. <!--<filtering>false</filtering>-->
  101. </resource>
  102. <resource>
  103. <directory>src/main/resources</directory>
  104. </resource>
  105. </resources>
  106. </build>
  107. </project>