1、删除pom.xml中的内容

    1. <!-- 以下内容删除 -->
    2. <dependencies>
    3. <dependency>
    4. <groupId>org.springframework.boot</groupId>
    5. <artifactId>spring-boot-starter</artifactId>
    6. </dependency>
    7. <dependency>
    8. <groupId>org.springframework.boot</groupId>
    9. <artifactId>spring-boot-starter-test</artifactId>
    10. <scope>test</scope>
    11. </dependency>
    12. </dependencies>

    2、添加 确定依赖的版本

    1. <properties>
    2. <java.version>1.8</java.version>
    3. <guli.version>0.0.1-SNAPSHOT</guli.version>
    4. <mybatis-plus.version>3.4.3</mybatis-plus.version>
    5. <velocity.version>2.0</velocity.version>
    6. <swagger.version>2.7.0</swagger.version>
    7. <aliyun.oss.version>2.8.3</aliyun.oss.version>
    8. <jodatime.version>2.10.1</jodatime.version>
    9. <poi.version>3.17</poi.version>
    10. <commons-fileupload.version>1.3.1</commons-fileupload.version>
    11. <commons-io.version>2.6</commons-io.version>
    12. <httpclient.version>4.5.1</httpclient.version>
    13. <jwt.version>0.7.0</jwt.version>
    14. <aliyun-java-sdk-core.version>4.3.3</aliyun-java-sdk-core.version>
    15. <aliyun-sdk-oss.version>3.1.0</aliyun-sdk-oss.version>
    16. <aliyun-java-sdk-vod.version>2.15.2</aliyun-java-sdk-vod.version>
    17. <aliyun-java-vod-upload.version>1.4.11</aliyun-java-vod-upload.version>
    18. <aliyun-sdk-vod-upload.version>1.4.11</aliyun-sdk-vod-upload.version>
    19. <fastjson.version>1.2.28</fastjson.version>
    20. <gson.version>2.8.2</gson.version>
    21. <json.version>20170516</json.version>
    22. <commons-dbutils.version>1.7</commons-dbutils.version>
    23. <canal.client.version>1.1.0</canal.client.version>
    24. <docker.image.prefix>zx</docker.image.prefix>
    25. <cloud-alibaba.version>0.2.2.RELEASE</cloud-alibaba.version>
    26. </properties>

    3、配置 锁定依赖的版本

    1. <dependencyManagement>
    2. <dependencies>
    3. <!--Spring Cloud-->
    4. <dependency>
    5. <groupId>org.springframework.cloud</groupId>
    6. <artifactId>spring-cloud-dependencies</artifactId>
    7. <version>Hoxton.RELEASE</version>
    8. <type>pom</type>
    9. <scope>import</scope>
    10. </dependency>
    11. <dependency>
    12. <groupId>org.springframework.cloud</groupId>
    13. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    14. <version>${cloud-alibaba.version}</version>
    15. <type>pom</type>
    16. <scope>import</scope>
    17. </dependency>
    18. <!--mybatis-plus 持久层-->
    19. <dependency>
    20. <groupId>com.baomidou</groupId>
    21. <artifactId>mybatis-plus-boot-starter</artifactId>
    22. <version>${mybatis-plus.version}</version>
    23. </dependency>
    24. <!-- velocity 模板引擎, Mybatis Plus 代码生成器需要 -->
    25. <dependency>
    26. <groupId>org.apache.velocity</groupId>
    27. <artifactId>velocity-engine-core</artifactId>
    28. <version>${velocity.version}</version>
    29. </dependency>
    30. <!--swagger-->
    31. <dependency>
    32. <groupId>io.springfox</groupId>
    33. <artifactId>springfox-swagger2</artifactId>
    34. <version>${swagger.version}</version>
    35. </dependency>
    36. <!--swagger ui-->
    37. <dependency>
    38. <groupId>io.springfox</groupId>
    39. <artifactId>springfox-swagger-ui</artifactId>
    40. <version>${swagger.version}</version>
    41. </dependency>
    42. <!--aliyunOSS-->
    43. <dependency>
    44. <groupId>com.aliyun.oss</groupId>
    45. <artifactId>aliyun-sdk-oss</artifactId>
    46. <version>${aliyun.oss.version}</version>
    47. </dependency>
    48. <!--日期时间工具-->
    49. <dependency>
    50. <groupId>joda-time</groupId>
    51. <artifactId>joda-time</artifactId>
    52. <version>${jodatime.version}</version>
    53. </dependency>
    54. <!--xls-->
    55. <dependency>
    56. <groupId>org.apache.poi</groupId>
    57. <artifactId>poi</artifactId>
    58. <version>${poi.version}</version>
    59. </dependency>
    60. <!--xlsx-->
    61. <dependency>
    62. <groupId>org.apache.poi</groupId>
    63. <artifactId>poi-ooxml</artifactId>
    64. <version>${poi.version}</version>
    65. </dependency>
    66. <!--文件上传-->
    67. <dependency>
    68. <groupId>commons-fileupload</groupId>
    69. <artifactId>commons-fileupload</artifactId>
    70. <version>${commons-fileupload.version}</version>
    71. </dependency>
    72. <!--commons-io-->
    73. <dependency>
    74. <groupId>commons-io</groupId>
    75. <artifactId>commons-io</artifactId>
    76. <version>${commons-io.version}</version>
    77. </dependency>
    78. <!--httpclient-->
    79. <dependency>
    80. <groupId>org.apache.httpcomponents</groupId>
    81. <artifactId>httpclient</artifactId>
    82. <version>${httpclient.version}</version>
    83. </dependency>
    84. <dependency>
    85. <groupId>com.google.code.gson</groupId>
    86. <artifactId>gson</artifactId>
    87. <version>${gson.version}</version>
    88. </dependency>
    89. <!-- JWT -->
    90. <dependency>
    91. <groupId>io.jsonwebtoken</groupId>
    92. <artifactId>jjwt</artifactId>
    93. <version>${jwt.version}</version>
    94. </dependency>
    95. <!--aliyun-->
    96. <dependency>
    97. <groupId>com.aliyun</groupId>
    98. <artifactId>aliyun-java-sdk-core</artifactId>
    99. <version>${aliyun-java-sdk-core.version}</version>
    100. </dependency>
    101. <dependency>
    102. <groupId>com.aliyun.oss</groupId>
    103. <artifactId>aliyun-sdk-oss</artifactId>
    104. <version>${aliyun-sdk-oss.version}</version>
    105. </dependency>
    106. <dependency>
    107. <groupId>com.aliyun</groupId>
    108. <artifactId>aliyun-java-sdk-vod</artifactId>
    109. <version>${aliyun-java-sdk-vod.version}</version>
    110. </dependency>
    111. <dependency>
    112. <groupId>com.aliyun</groupId>
    113. <artifactId>aliyun-java-vod-upload</artifactId>
    114. <version>${aliyun-java-vod-upload.version}</version>
    115. </dependency>
    116. <dependency>
    117. <groupId>com.aliyun</groupId>
    118. <artifactId>aliyun-sdk-vod-upload</artifactId>
    119. <version>${aliyun-sdk-vod-upload.version}</version>
    120. </dependency>
    121. <dependency>
    122. <groupId>com.alibaba</groupId>
    123. <artifactId>fastjson</artifactId>
    124. <version>${fastjson.version}</version>
    125. </dependency>
    126. <dependency>
    127. <groupId>org.json</groupId>
    128. <artifactId>json</artifactId>
    129. <version>${json.version}</version>
    130. </dependency>
    131. <dependency>
    132. <groupId>commons-dbutils</groupId>
    133. <artifactId>commons-dbutils</artifactId>
    134. <version>${commons-dbutils.version}</version>
    135. </dependency>
    136. <dependency>
    137. <groupId>com.alibaba.otter</groupId>
    138. <artifactId>canal.client</artifactId>
    139. <version>${canal.client.version}</version>
    140. </dependency>
    141. </dependencies>
    142. </dependencyManagement>