pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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.7.6</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>demo</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>demo</name>
  15. <description>demo</description>
  16. <url/>
  17. <properties>
  18. <java.version>17</java.version>
  19. </properties>
  20. <dependencies>
  21. <!-- MyBatis -->
  22. <dependency>
  23. <groupId>org.mybatis.spring.boot</groupId>
  24. <artifactId>mybatis-spring-boot-starter</artifactId>
  25. <version>3.0.0</version>
  26. </dependency>
  27. <!-- Spring Boot DevTools -->
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-devtools</artifactId>
  31. <scope>runtime</scope>
  32. <optional>true</optional>
  33. </dependency>
  34. <!-- MySQL -->
  35. <dependency>
  36. <groupId>com.mysql</groupId>
  37. <artifactId>mysql-connector-j</artifactId>
  38. <version>8.0.31</version>
  39. <scope>runtime</scope>
  40. </dependency>
  41. <!-- Lombok -->
  42. <dependency>
  43. <groupId>org.projectlombok</groupId>
  44. <artifactId>lombok</artifactId>
  45. <optional>true</optional>
  46. </dependency>
  47. <!-- Spring Boot Test -->
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-test</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. <!-- Swagger3 -->
  54. <dependency>
  55. <groupId>io.springfox</groupId>
  56. <artifactId>springfox-boot-starter</artifactId>
  57. <version>3.0.0</version>
  58. </dependency>
  59. <!-- Knife4j -->
  60. <dependency>
  61. <groupId>com.github.xiaoymin</groupId>
  62. <artifactId>knife4j-spring-ui</artifactId>
  63. <version>3.0.3</version>
  64. </dependency>
  65. <!-- Fastjson (Optional, but you can remove it if you use Jackson for JSON) -->
  66. <dependency>
  67. <groupId>com.alibaba</groupId>
  68. <artifactId>fastjson</artifactId>
  69. <version>1.2.15</version>
  70. </dependency>
  71. <!-- Jackson Databind (Optional, Spring Boot already includes it) -->
  72. <!-- This dependency is usually not necessary unless you want to upgrade Jackson version -->
  73. <dependency>
  74. <groupId>com.fasterxml.jackson.core</groupId>
  75. <artifactId>jackson-databind</artifactId>
  76. <version>2.13.1</version>
  77. </dependency>
  78. <!-- Spring Boot Starter Web (This includes Jackson by default) -->
  79. <dependency>
  80. <groupId>org.springframework.boot</groupId>
  81. <artifactId>spring-boot-starter-web</artifactId>
  82. </dependency>
  83. </dependencies>
  84. <build>
  85. <plugins>
  86. <plugin>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-maven-plugin</artifactId>
  89. <configuration>
  90. <excludes>
  91. <exclude>
  92. <groupId>org.projectlombok</groupId>
  93. <artifactId>lombok</artifactId>
  94. </exclude>
  95. </excludes>
  96. </configuration>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. <repositories>
  101. <repository>
  102. <id>spring-snapshots</id>
  103. <name>Spring Snapshots</name>
  104. <url>https://repo.spring.io/snapshot</url>
  105. <releases>
  106. <enabled>false</enabled>
  107. </releases>
  108. </repository>
  109. </repositories>
  110. <pluginRepositories>
  111. <pluginRepository>
  112. <id>spring-snapshots</id>
  113. <name>Spring Snapshots</name>
  114. <url>https://repo.spring.io/snapshot</url>
  115. <releases>
  116. <enabled>false</enabled>
  117. </releases>
  118. </pluginRepository>
  119. </pluginRepositories>
  120. </project>