pom.xml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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>com.unissoft</groupId>
  17. <artifactId>csc-szls-common-utils</artifactId>
  18. <version>1.0-SNAPSHOT</version>
  19. <scope>compile</scope>
  20. </dependency>-->
  21. <!--spring cloud-->
  22. <dependency>
  23. <groupId>org.springframework.cloud</groupId>
  24. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.cloud</groupId>
  28. <artifactId>spring-cloud-starter-config</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-actuator</artifactId>
  33. </dependency>
  34. <!--网关gateway-->
  35. <dependency>
  36. <groupId>org.springframework.cloud</groupId>
  37. <artifactId>spring-cloud-starter-gateway</artifactId>
  38. </dependency>
  39. <dependency>
  40. <groupId>io.springfox</groupId>
  41. <artifactId>springfox-swagger2</artifactId>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.springfox</groupId>
  45. <artifactId>springfox-swagger-ui</artifactId>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.projectlombok</groupId>
  49. <artifactId>lombok</artifactId>
  50. <optional>true</optional>
  51. </dependency>
  52. <!--hystrix熔断降级-->
  53. <dependency>
  54. <groupId>org.springframework.cloud</groupId>
  55. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  56. </dependency>
  57. </dependencies>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-maven-plugin</artifactId>
  63. <configuration>
  64. <mainClass>com.unissoft.GatewayStart</mainClass>
  65. </configuration>
  66. </plugin>
  67. </plugins>
  68. <!-- 如果不添加此节点mybatis的mapper.xml文件都会被漏掉。 -->
  69. <resources>
  70. <resource>
  71. <directory>src/main/java</directory>
  72. <includes>
  73. <include>**/*.properties</include>
  74. <include>**/*.xml</include>
  75. </includes>
  76. <!--<filtering>false</filtering>-->
  77. </resource>
  78. <resource>
  79. <directory>src/main/resources</directory>
  80. </resource>
  81. </resources>
  82. </build>
  83. </project>