pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.2.6.RELEASE</version> <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-parent -->
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <name>Job</name>
  12. <groupId>cn.minbb</groupId>
  13. <artifactId>job</artifactId>
  14. <version>0.0.1.SNAPSHOT</version>
  15. <description>Job project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. </properties>
  21. <dependencies>
  22. <!-- Web -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. <exclusions>
  27. <exclusion>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-tomcat</artifactId>
  30. </exclusion>
  31. </exclusions>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-test</artifactId>
  36. <scope>test</scope>
  37. <exclusions>
  38. <exclusion>
  39. <groupId>org.junit.vintage</groupId>
  40. <artifactId>junit-vintage-engine</artifactId>
  41. </exclusion>
  42. </exclusions>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.springframework.boot</groupId>
  46. <artifactId>spring-boot-starter-undertow</artifactId>
  47. </dependency>
  48. <!-- 安全中心 -->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-security</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>org.springframework.security</groupId>
  55. <artifactId>spring-security-test</artifactId>
  56. <scope>test</scope>
  57. </dependency>
  58. <!-- Thymeleaf 模板引擎 -->
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  62. </dependency>
  63. <!-- https://mvnrepository.com/artifact/org.thymeleaf.extras/thymeleaf-extras-springsecurity5 -->
  64. <dependency>
  65. <groupId>org.thymeleaf.extras</groupId>
  66. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  67. <version>3.0.4.RELEASE</version>
  68. </dependency>
  69. <!-- 避免 layout:fragment 失效 -->
  70. <dependency>
  71. <groupId>nz.net.ultraq.thymeleaf</groupId>
  72. <artifactId>thymeleaf-layout-dialect</artifactId>
  73. <version>2.3.0</version>
  74. </dependency>
  75. <!-- MySQL https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
  76. <dependency>
  77. <groupId>mysql</groupId>
  78. <artifactId>mysql-connector-java</artifactId>
  79. <scope>runtime</scope>
  80. </dependency>
  81. <!-- JPA -->
  82. <dependency>
  83. <groupId>org.springframework.boot</groupId>
  84. <artifactId>spring-boot-starter-data-jpa</artifactId>
  85. </dependency>
  86. <!-- https://mvnrepository.com/artifact/com.alibaba/druid-spring-boot-starter -->
  87. <dependency>
  88. <groupId>com.alibaba</groupId>
  89. <artifactId>druid-spring-boot-starter</artifactId>
  90. <version>1.1.22</version>
  91. </dependency>
  92. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  93. <dependency>
  94. <groupId>com.alibaba</groupId>
  95. <artifactId>fastjson</artifactId>
  96. <version>1.2.68</version>
  97. </dependency>
  98. <!-- Actuator -->
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-starter-actuator</artifactId>
  102. </dependency>
  103. <!-- 服务注册与发现中心 Eureka Client https://mvnrepository.com/artifact/org.springframework.cloud/spring-cloud-starter-netflix-eureka-client -->
  104. <dependency>
  105. <groupId>org.springframework.cloud</groupId>
  106. <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
  107. <version>2.2.2.RELEASE</version>
  108. </dependency>
  109. <dependency>
  110. <groupId>org.projectlombok</groupId>
  111. <artifactId>lombok</artifactId>
  112. <optional>true</optional>
  113. </dependency>
  114. <!-- 热部署 -->
  115. <dependency>
  116. <groupId>org.springframework.boot</groupId>
  117. <artifactId>spring-boot-devtools</artifactId>
  118. <scope>runtime</scope>
  119. <optional>true</optional>
  120. </dependency>
  121. <!-- Swagger2 -->
  122. <dependency>
  123. <groupId>io.springfox</groupId>
  124. <artifactId>springfox-swagger-ui</artifactId>
  125. <version>2.9.2</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>io.springfox</groupId>
  129. <artifactId>springfox-swagger2</artifactId>
  130. <version>2.9.2</version>
  131. </dependency>
  132. </dependencies>
  133. <dependencyManagement>
  134. <dependencies>
  135. <dependency>
  136. <groupId>org.springframework.cloud</groupId>
  137. <artifactId>spring-cloud-dependencies</artifactId>
  138. <version>Hoxton.SR3</version>
  139. <type>pom</type>
  140. <scope>import</scope>
  141. </dependency>
  142. </dependencies>
  143. </dependencyManagement>
  144. <build>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.springframework.boot</groupId>
  148. <artifactId>spring-boot-maven-plugin</artifactId>
  149. </plugin>
  150. </plugins>
  151. </build>
  152. </project>