pom.xml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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. <!-- 可能需要降版本 -->
  9. <version>3.2.0</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>com.sf</groupId>
  13. <artifactId>novel-demo</artifactId>
  14. <version>0.0.1-SNAPSHOT</version>
  15. <name>novel-demo</name>
  16. <description>novel-demo</description>
  17. <properties>
  18. <java.version>17</java.version>
  19. <jjwt.version>0.11.5</jjwt.version>
  20. <!-- 使用属性properties 统一版本的引入 -->
  21. <mybatis-plus.version>3.5.4</mybatis-plus.version>
  22. </properties>
  23. <dependencies>
  24. <!-- web项目 也代表启动时嵌入tomcat容器 -->
  25. <dependency>
  26. <groupId>org.springframework.boot</groupId>
  27. <artifactId>spring-boot-starter-web</artifactId>
  28. </dependency>
  29. <!-- mybatis整合springboot启动器 -->
  30. <dependency>
  31. <groupId>org.mybatis.spring.boot</groupId>
  32. <artifactId>mybatis-spring-boot-starter</artifactId>
  33. <version>3.0.3</version>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.mysql</groupId>
  37. <artifactId>mysql-connector-j</artifactId>
  38. <version>8.4.0</version>
  39. </dependency>
  40. <!-- <dependency>-->
  41. <!-- <groupId>mysql</groupId>-->
  42. <!-- <artifactId>mysql-connector-java</artifactId>-->
  43. <!-- <version>8.0.33</version>-->
  44. <!-- </dependency>-->
  45. <dependency>
  46. <groupId>org.projectlombok</groupId>
  47. <artifactId>lombok</artifactId>
  48. <version>1.18.32</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.baomidou</groupId>
  52. <artifactId>mybatis-plus-boot-starter</artifactId>
  53. <!-- <version>3.5.4</version>-->
  54. <version>${mybatis-plus.version}</version>
  55. </dependency>
  56. <!-- mybatis plus代码生成 -->
  57. <dependency>
  58. <groupId>com.baomidou</groupId>
  59. <artifactId>mybatis-plus-generator</artifactId>
  60. <!-- <version>3.5.4</version>-->
  61. <version>${mybatis-plus.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.freemarker</groupId>
  65. <artifactId>freemarker</artifactId>
  66. <version>2.3.32</version>
  67. </dependency>
  68. <!-- 提供swagger功能 可以测试接口 -->
  69. <dependency>
  70. <groupId>org.springdoc</groupId>
  71. <artifactId>springdoc-openapi-starter-webmvc-api</artifactId>
  72. <version>2.0.2</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.springdoc</groupId>
  76. <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
  77. <version>2.0.2</version>
  78. </dependency>
  79. <!-- 使用hutool 生成验证码图片 -->
  80. <dependency>
  81. <groupId>cn.hutool</groupId>
  82. <artifactId>hutool-all</artifactId>
  83. <version>5.8.27</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.springframework.data</groupId>
  87. <artifactId>spring-data-commons</artifactId>
  88. <version>3.3.0</version>
  89. </dependency>
  90. <!-- 使用jwt来做用户登录信息加密和校验 -->
  91. <dependency>
  92. <groupId>io.jsonwebtoken</groupId>
  93. <artifactId>jjwt-api</artifactId>
  94. <version>${jjwt.version}</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>io.jsonwebtoken</groupId>
  98. <artifactId>jjwt-impl</artifactId>
  99. <version>${jjwt.version}</version>
  100. <scope>runtime</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>io.jsonwebtoken</groupId>
  104. <artifactId>jjwt-jackson</artifactId>
  105. <version>${jjwt.version}</version>
  106. <scope>runtime</scope>
  107. </dependency>
  108. <!-- springboot整合redis -->
  109. <dependency>
  110. <groupId>org.springframework.boot</groupId>
  111. <artifactId>spring-boot-starter-data-redis</artifactId>
  112. </dependency>
  113. <!-- 谷歌提供的转化json的jar包 -->
  114. <dependency>
  115. <groupId>com.google.code.gson</groupId>
  116. <artifactId>gson</artifactId>
  117. <version>2.11.0</version>
  118. </dependency>
  119. <!-- springboot测试的依赖 提供@SpringBootTest注解等功能 -->
  120. <dependency>
  121. <groupId>org.springframework.boot</groupId>
  122. <artifactId>spring-boot-starter-test</artifactId>
  123. <scope>test</scope>
  124. </dependency>
  125. </dependencies>
  126. <build>
  127. <plugins>
  128. <plugin>
  129. <groupId>org.springframework.boot</groupId>
  130. <artifactId>spring-boot-maven-plugin</artifactId>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-surefire-plugin</artifactId>
  135. <configuration>
  136. <skip>true</skip>
  137. </configuration>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. </project>