spring 基础框架建设

pom.xml 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.example</groupId>
  6. <artifactId>zuul</artifactId>
  7. <version>0.0.1</version>
  8. <packaging>jar</packaging>
  9. <name>demo</name>
  10. <description>Demo project for Spring Boot</description>
  11. <parent>
  12. <groupId>com.example</groupId>
  13. <artifactId>spring-cloud</artifactId>
  14. <version>0.0.1</version>
  15. </parent>
  16. <properties>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  19. <java.version>1.8</java.version>
  20. <spring-cloud.version>Finchley.SR1</spring-cloud.version>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.cloud</groupId>
  29. <artifactId>spring-cloud-starter-zuul</artifactId>
  30. <version>1.4.5.RELEASE</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.didispace</groupId>
  34. <artifactId>swagger-butler-core</artifactId>
  35. <version>1.0.0</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.cloud</groupId>
  39. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.cloud</groupId>
  43. <artifactId>spring-cloud-starter-config</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-actuator</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-test</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-starter-jdbc</artifactId>
  57. </dependency>
  58. <!--<dependency>-->
  59. <!--<groupId>org.springframework.session</groupId>-->
  60. <!--<artifactId>spring-session</artifactId>-->
  61. <!--<version>1.3.3.RELEASE</version>-->
  62. <!--</dependency>-->
  63. <dependency>
  64. <groupId>org.springframework.session</groupId>
  65. <artifactId>spring-session-jdbc</artifactId>
  66. <version>2.0.5.RELEASE</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>mysql</groupId>
  70. <artifactId>mysql-connector-java</artifactId>
  71. <version>8.0.12</version>
  72. </dependency>
  73. </dependencies>
  74. <dependencyManagement>
  75. <dependencies>
  76. <dependency>
  77. <groupId>org.springframework.cloud</groupId>
  78. <artifactId>spring-cloud-dependencies</artifactId>
  79. <version>${spring-cloud.version}</version>
  80. <type>pom</type>
  81. <scope>import</scope>
  82. </dependency>
  83. </dependencies>
  84. </dependencyManagement>
  85. <build>
  86. <plugins>
  87. <plugin>
  88. <groupId>org.springframework.boot</groupId>
  89. <artifactId>spring-boot-maven-plugin</artifactId>
  90. </plugin>
  91. </plugins>
  92. </build>
  93. </project>