pom.xml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.diagbot</groupId>
  7. <artifactId>user-service</artifactId>
  8. <version>0.0.1-SNAPSHOT</version>
  9. <packaging>jar</packaging>
  10. <name>user-service</name>
  11. <description>User service for Spring Boot</description>
  12. <parent>
  13. <groupId>com.diagbot</groupId>
  14. <artifactId>diagbotcloud</artifactId>
  15. <version>0.0.1-SNAPSHOT</version>
  16. </parent>
  17. <dependencies>
  18. <dependency>
  19. <groupId>com.diagbot</groupId>
  20. <artifactId>common</artifactId>
  21. <version>0.0.1-SNAPSHOT</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.springframework.cloud</groupId>
  25. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  26. </dependency>
  27. <!-- 配置-->
  28. <dependency>
  29. <groupId>org.springframework.cloud</groupId>
  30. <artifactId>spring-cloud-starter-config</artifactId>
  31. </dependency>
  32. <!-- 开启web-->
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-web</artifactId>
  36. </dependency>
  37. <!-- 开启feign-->
  38. <dependency>
  39. <groupId>org.springframework.cloud</groupId>
  40. <artifactId>spring-cloud-starter-openfeign</artifactId>
  41. </dependency>
  42. <!-- dashboard -->
  43. <!-- actuator-->
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-actuator</artifactId>
  47. </dependency>
  48. <!--hystrix-dashboard-->
  49. <dependency>
  50. <groupId>org.springframework.cloud</groupId>
  51. <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId>
  52. </dependency>
  53. <!--hystrix -->
  54. <dependency>
  55. <groupId>org.springframework.cloud</groupId>
  56. <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>
  57. </dependency>
  58. <!-- zipkin-->
  59. <dependency>
  60. <groupId>org.springframework.cloud</groupId>
  61. <artifactId>spring-cloud-starter-zipkin</artifactId>
  62. </dependency>
  63. <!--swagger-->
  64. <dependency>
  65. <groupId>io.springfox</groupId>
  66. <artifactId>springfox-swagger2</artifactId>
  67. </dependency>
  68. <dependency>
  69. <groupId>io.springfox</groupId>
  70. <artifactId>springfox-swagger-ui</artifactId>
  71. </dependency>
  72. <!--database-->
  73. <dependency>
  74. <groupId>mysql</groupId>
  75. <artifactId>mysql-connector-java</artifactId>
  76. <scope>runtime</scope>
  77. </dependency>
  78. <!--<dependency>-->
  79. <!--<groupId>org.springframework.boot</groupId>-->
  80. <!--<artifactId>spring-boot-starter-data-jpa</artifactId>-->
  81. <!--</dependency>-->
  82. <!--security-->
  83. <dependency>
  84. <groupId>org.springframework.cloud</groupId>
  85. <artifactId>spring-cloud-starter-oauth2</artifactId>
  86. </dependency>
  87. <!-- mq -->
  88. <dependency>
  89. <groupId>org.springframework.boot</groupId>
  90. <artifactId>spring-boot-starter-amqp</artifactId>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.projectlombok</groupId>
  94. <artifactId>lombok</artifactId>
  95. <optional>true</optional>
  96. </dependency>
  97. <!-- mybatis-plus begin -->
  98. <dependency>
  99. <groupId>com.baomidou</groupId>
  100. <artifactId>mybatis-plus-boot-starter</artifactId>
  101. <version>${mybatis-plus-boot-starter.version}</version>
  102. </dependency>
  103. <!-- mybatis-plus end -->
  104. <!-- 阿里巴巴druid数据库连接池 -->
  105. <dependency>
  106. <groupId>com.alibaba</groupId>
  107. <artifactId>druid-spring-boot-starter</artifactId>
  108. </dependency>
  109. <!-- springboot整合mybatis(核心就这一个) -->
  110. <!-- 注意顺序,这个一定要放在最下面 -->
  111. <dependency>
  112. <groupId>org.mybatis.spring.boot</groupId>
  113. <artifactId>mybatis-spring-boot-starter</artifactId>
  114. <version>${mybatis-spring-boot.version}</version>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.springframework.boot</groupId>
  121. <artifactId>spring-boot-maven-plugin</artifactId>
  122. </plugin>
  123. </plugins>
  124. </build>
  125. </project>