pom.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>com.example</groupId>
  6. <artifactId>springboot-04-mybatis-plus</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>springboot-04-mybatis-plus</name>
  10. <description>HelloWorld for Spring Boot</description>
  11. <parent>
  12. <groupId>org.springframework.boot</groupId>
  13. <artifactId>spring-boot-starter-parent</artifactId>
  14. <version>2.3.0.RELEASE</version>
  15. <relativePath/> <!-- lookup parent from repository -->
  16. </parent>
  17. <properties>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20. <java.version>1.8</java.version>
  21. <springfox-swagger.version>2.9.2</springfox-swagger.version>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-web</artifactId>
  27. </dependency>
  28. <dependency>
  29. <groupId>org.springframework.boot</groupId>
  30. <artifactId>spring-boot-starter-test</artifactId>
  31. <scope>test</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>mysql</groupId>
  35. <artifactId>mysql-connector-java</artifactId>
  36. <scope>runtime</scope>
  37. <version>5.1.48</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.baomidou</groupId>
  41. <artifactId>mybatis-plus-boot-starter</artifactId>
  42. <version>3.3.2</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.projectlombok</groupId>
  46. <artifactId>lombok</artifactId>
  47. <optional>true</optional>
  48. </dependency>
  49. <!-- 热部署 -->
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-devtools</artifactId>
  53. <optional>true</optional>
  54. </dependency>
  55. <dependency>
  56. <groupId>io.springfox</groupId>
  57. <artifactId>springfox-swagger2</artifactId>
  58. <version>${springfox-swagger.version}</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>io.springfox</groupId>
  62. <artifactId>springfox-swagger-ui</artifactId>
  63. <version>${springfox-swagger.version}</version>
  64. <exclusions>
  65. <exclusion>
  66. <groupId>io.swagger</groupId>
  67. <artifactId>swagger-models</artifactId>
  68. </exclusion>
  69. </exclusions>
  70. </dependency>
  71. <!-- io.springfox:springfox-swagger2:2.9.2中依赖了swagger-models的1.5.20版本,通过排除springfox-swagger2中的swagger-models依赖,
  72. 导入io.swagger:swagger-models的1.5.21版本.解决io.swagger.models.parameters.AbstractSerializableParameter实例化参数时example为
  73. 空字符串""而报错的问题.因为1.5.20的example只判断是否为null,1.5.21判断了是否为null和""-->
  74. <dependency>
  75. <groupId>io.swagger</groupId>
  76. <artifactId>swagger-models</artifactId>
  77. <version>1.5.21</version>
  78. </dependency>
  79. <!-- feign http请求 -->
  80. <dependency>
  81. <groupId>io.github.openfeign</groupId>
  82. <artifactId>feign-jackson</artifactId>
  83. <version>10.2.3</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>javax.validation</groupId>
  87. <artifactId>validation-api</artifactId>
  88. <version>1.1.0.Final</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.hibernate</groupId>
  92. <artifactId>hibernate-validator</artifactId>
  93. <version>5.3.6.Final</version>
  94. </dependency>
  95. </dependencies>
  96. <build>
  97. <plugins>
  98. <plugin>
  99. <groupId>org.springframework.boot</groupId>
  100. <artifactId>spring-boot-maven-plugin</artifactId>
  101. </plugin>
  102. </plugins>
  103. </build>
  104. <repositories>
  105. <repository>
  106. <id>oss</id>
  107. <url>file:C:\Users\lenovo\.m2\repository</url>
  108. </repository>
  109. </repositories>
  110. <pluginRepositories>
  111. <pluginRepository>
  112. <id>oss</id>
  113. <url>file:C:\Users\13122\.m2\repository</url>
  114. </pluginRepository>
  115. </pluginRepositories>
  116. </project>