pom.xml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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.18</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.my</groupId>
  12. <artifactId>ArticleOperation</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>ArticleOperation</name>
  15. <description>ArticleOperation</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. <mybatis.version>2.3.2</mybatis.version>
  19. </properties>
  20. <dependencies>
  21. <!--web 启动依赖-->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-test</artifactId>
  29. <scope>test</scope>
  30. </dependency>
  31. <!--mybatis 起步依赖-->
  32. <dependency>
  33. <groupId>org.mybatis.spring.boot</groupId>
  34. <artifactId>mybatis-spring-boot-starter</artifactId>
  35. <version>${mybatis.version}</version>
  36. </dependency>
  37. <!--mysql 驱动依赖-->
  38. <dependency>
  39. <groupId>com.mysql</groupId>
  40. <artifactId>mysql-connector-j</artifactId>
  41. <scope>runtime</scope>
  42. </dependency>
  43. <!--lombok 依赖,自动在实体类中添加 getter setter 方法-->
  44. <dependency>
  45. <groupId>org.projectlombok</groupId>
  46. <artifactId>lombok</artifactId>
  47. </dependency>
  48. <!--validation 依赖,使用正则表达式校验前端传过来的参数-->
  49. <dependency>
  50. <groupId>org.springframework.boot</groupId>
  51. <artifactId>spring-boot-starter-validation</artifactId>
  52. </dependency>
  53. <!-- jwt 令牌验证-->
  54. <dependency>
  55. <groupId>com.auth0</groupId>
  56. <artifactId>java-jwt</artifactId>
  57. <version>3.10.3</version>
  58. </dependency>
  59. <!--springboot 单元测试依赖,比 junit 更好的测试 springboot 项目-->
  60. <dependency>
  61. <groupId>org.springframework.boot</groupId>
  62. <artifactId>spring-boot-starter-test</artifactId>
  63. </dependency>
  64. <!--分页查询插件-->
  65. <dependency>
  66. <groupId>com.github.pagehelper</groupId>
  67. <artifactId>pagehelper-spring-boot-starter</artifactId>
  68. <version>1.4.6</version>
  69. </dependency>
  70. </dependencies>
  71. <!--打包插件,版本需要与springboot版本匹配-->
  72. <build>
  73. <plugins>
  74. <plugin>
  75. <groupId>org.springframework.boot</groupId>
  76. <artifactId>spring-boot-maven-plugin</artifactId>
  77. <!-- <version>3.2.0</version>-->
  78. </plugin>
  79. </plugins>
  80. </build>
  81. </project>