Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

107 linhas
3.5KB

  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
  5. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  6. <modelVersion>4.0.0</modelVersion>
  7. <groupId>com.example</groupId>
  8. <artifactId>webapi</artifactId>
  9. <version>1.0.0</version>
  10. <packaging>jar</packaging>
  11. <name>webapi</name>
  12. <description>SpringBoot WebAPI with Access Key/Secret Key Authentication</description>
  13. <parent>
  14. <groupId>org.springframework.boot</groupId>
  15. <artifactId>spring-boot-starter-parent</artifactId>
  16. <version>2.7.18</version>
  17. <relativePath/>
  18. </parent>
  19. <properties>
  20. <java.version>1.8</java.version>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  23. </properties>
  24. <dependencies>
  25. <!-- Spring Boot Starter Web -->
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <!-- Spring Boot Starter Data JPA -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-data-jpa</artifactId>
  34. </dependency>
  35. <!-- SQL Server JDBC Driver -->
  36. <dependency>
  37. <groupId>com.microsoft.sqlserver</groupId>
  38. <artifactId>mssql-jdbc</artifactId>
  39. <version>9.2.1.jre8</version>
  40. <scope>runtime</scope>
  41. </dependency>
  42. <!-- PostgreSQL JDBC Driver -->
  43. <dependency>
  44. <groupId>org.postgresql</groupId>
  45. <artifactId>postgresql</artifactId>
  46. <version>42.2.27</version>
  47. <scope>runtime</scope>
  48. </dependency>
  49. <!-- Spring Boot Starter Validation -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-validation</artifactId>
  53. </dependency>
  54. <!-- Lombok -->
  55. <dependency>
  56. <groupId>org.projectlombok</groupId>
  57. <artifactId>lombok</artifactId>
  58. <optional>true</optional>
  59. </dependency>
  60. <!-- Spring Boot Starter Test -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-test</artifactId>
  64. <scope>test</scope>
  65. </dependency>
  66. <!-- Swagger2/Springfox 2.9.2 依赖 - 与Spring Boot 2.7.x兼容 -->
  67. <dependency>
  68. <groupId>io.springfox</groupId>
  69. <artifactId>springfox-swagger2</artifactId>
  70. <version>2.9.2</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>io.springfox</groupId>
  74. <artifactId>springfox-swagger-ui</artifactId>
  75. <version>2.9.2</version>
  76. </dependency>
  77. </dependencies>
  78. <build>
  79. <plugins>
  80. <plugin>
  81. <groupId>org.springframework.boot</groupId>
  82. <artifactId>spring-boot-maven-plugin</artifactId>
  83. <configuration>
  84. <excludes>
  85. <exclude>
  86. <groupId>org.projectlombok</groupId>
  87. <artifactId>lombok</artifactId>
  88. </exclude>
  89. </excludes>
  90. </configuration>
  91. </plugin>
  92. </plugins>
  93. </build>
  94. </project>