pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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>3.5.6</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>org.example</groupId>
  12. <artifactId>TQYB</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>TQYB</name>
  15. <description>TQYB</description>
  16. <url/>
  17. <licenses>
  18. <license/>
  19. </licenses>
  20. <developers>
  21. <developer/>
  22. </developers>
  23. <scm>
  24. <connection/>
  25. <developerConnection/>
  26. <tag/>
  27. <url/>
  28. </scm>
  29. <properties>
  30. <java.version>17</java.version>
  31. </properties>
  32. <dependencies>
  33. <dependency>
  34. <groupId>org.springframework.boot</groupId>
  35. <artifactId>spring-boot-starter-data-jpa</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.springframework.boot</groupId>
  39. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-web</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <optional>true</optional>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-test</artifactId>
  53. <scope>test</scope>
  54. </dependency>
  55. <!-- MyBatis集成 -->
  56. <dependency>
  57. <groupId>org.mybatis.spring.boot</groupId>
  58. <artifactId>mybatis-spring-boot-starter</artifactId>
  59. <version>3.0.3</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.httpcomponents</groupId>
  63. <artifactId>httpclient</artifactId>
  64. <version>4.5.13</version> <!-- 使用最新的稳定版本 -->
  65. </dependency>
  66. <!-- 数据库驱动 -->
  67. <dependency>
  68. <groupId>com.mysql</groupId>
  69. <artifactId>mysql-connector-j</artifactId>
  70. <scope>runtime</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>com.fasterxml.jackson.core</groupId>
  74. <artifactId>jackson-databind</artifactId>
  75. </dependency>
  76. <!-- Gson: Java to Json conversion -->
  77. <dependency>
  78. <groupId>com.google.code.gson</groupId>
  79. <artifactId>gson</artifactId>
  80. <version>2.8.9</version> <!-- 请检查并使用最新版本 -->
  81. </dependency>
  82. <dependency>
  83. <groupId>org.json</groupId>
  84. <artifactId>json</artifactId>
  85. <version>20210307</version> <!-- 使用最新版本或你需要的版本 -->
  86. </dependency>
  87. </dependencies>
  88. <build>
  89. <plugins>
  90. <plugin>
  91. <groupId>org.apache.maven.plugins</groupId>
  92. <artifactId>maven-compiler-plugin</artifactId>
  93. <configuration>
  94. <annotationProcessorPaths>
  95. <path>
  96. <groupId>org.projectlombok</groupId>
  97. <artifactId>lombok</artifactId>
  98. </path>
  99. </annotationProcessorPaths>
  100. </configuration>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.springframework.boot</groupId>
  104. <artifactId>spring-boot-maven-plugin</artifactId>
  105. <configuration>
  106. <excludes>
  107. <exclude>
  108. <groupId>org.projectlombok</groupId>
  109. <artifactId>lombok</artifactId>
  110. </exclude>
  111. </excludes>
  112. </configuration>
  113. </plugin>
  114. </plugins>
  115. <resources>
  116. <resource>
  117. <directory>src/main/resources</directory>
  118. <includes>
  119. <include>**/*.properties</include>
  120. <include>**/*.xml</include>
  121. </includes>
  122. <filtering>false</filtering>
  123. </resource>
  124. </resources>
  125. </build>
  126. </project>