pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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>org.example</groupId>
  7. <artifactId>ChronicDiseaseApp</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>17</maven.compiler.source>
  11. <maven.compiler.target>17</maven.compiler.target>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <spring-boot.version>3.0.13</spring-boot.version>
  14. <!-- Centralized dependency versions -->
  15. <mybatis-plus.version>3.5.3</mybatis-plus.version>
  16. <pagehelper.version>1.4.2</pagehelper.version>
  17. <lombok.version>1.18.24</lombok.version>
  18. <hutool.version>5.8.22</hutool.version>
  19. <mysql.connector.version>5.1.49</mysql.connector.version>
  20. <knife4j.version>4.4.0</knife4j.version>
  21. <junit.jupiter.version>5.9.2</junit.jupiter.version>
  22. </properties>
  23. <dependencyManagement>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-dependencies</artifactId>
  28. <version>${spring-boot.version}</version>
  29. <type>pom</type>
  30. <scope>import</scope>
  31. </dependency>
  32. </dependencies>
  33. </dependencyManagement>
  34. <dependencies>
  35. <!-- Spring Boot 核心依赖 -->
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter</artifactId>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-web</artifactId>
  43. </dependency>
  44. <!-- 参数校验依赖 -->
  45. <dependency>
  46. <groupId>org.springframework.boot</groupId>
  47. <artifactId>spring-boot-starter-validation</artifactId>
  48. </dependency>
  49. <!-- MyBatis-Plus 依赖 -->
  50. <dependency>
  51. <groupId>com.baomidou</groupId>
  52. <artifactId>mybatis-plus-boot-starter</artifactId>
  53. <version>${mybatis-plus.version}</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.baomidou</groupId>
  57. <artifactId>mybatis-plus-extension</artifactId>
  58. <version>${mybatis-plus.version}</version>
  59. </dependency>
  60. <!-- PageHelper 分页插件 -->
  61. <dependency>
  62. <groupId>com.github.pagehelper</groupId>
  63. <artifactId>pagehelper-spring-boot-starter</artifactId>
  64. <version>${pagehelper.version}</version>
  65. </dependency>
  66. <!-- Lombok 依赖 -->
  67. <dependency>
  68. <groupId>org.projectlombok</groupId>
  69. <artifactId>lombok</artifactId>
  70. <version>${lombok.version}</version>
  71. <scope>provided</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>cn.hutool</groupId>
  75. <artifactId>hutool-all</artifactId>
  76. <version>${hutool.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>mysql</groupId>
  80. <artifactId>mysql-connector-java</artifactId>
  81. <version>${mysql.connector.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>com.github.xiaoymin</groupId>
  85. <!-- Jakarta EE compatible Knife4j starter -->
  86. <artifactId>knife4j-openapi3-jakarta-spring-boot-starter</artifactId>
  87. <version>${knife4j.version}</version>
  88. </dependency>
  89. <!-- Test dependencies -->
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-test</artifactId>
  93. <scope>test</scope>
  94. </dependency>
  95. </dependencies>
  96. <build>
  97. <plugins>
  98. <plugin>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-maven-plugin</artifactId>
  101. <version>${spring-boot.version}</version>
  102. <executions>
  103. <execution>
  104. <goals>
  105. <goal>repackage</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. </project>