1. <!--统一管理jar包版本-->
    2. <properties>
    3. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    4. <maven.compiler.source>12</maven.compiler.source>
    5. <maven.compiler.target>12</maven.compiler.target>
    6. <junit.version>4.12</junit.version>
    7. <lombok.version>1.18.10</lombok.version>
    8. <log4j.version>1.2.17</log4j.version>
    9. <mysql.version>8.0.18</mysql.version>
    10. <druid.version>1.1.16</druid.version>
    11. <mybatis.spring.boot.version>2.1.1</mybatis.spring.boot.version>
    12. </properties>
    13. <dependencyManagement>
    14. <dependencies>
    15. <dependency>
    16. <groupId>org.apache.maven.plugins</groupId>
    17. <artifactId>maven-project-info-reports-plugin</artifactId>
    18. <version>3.0.0</version>
    19. </dependency>
    20. <!--spring boot 2.2.2-->
    21. <dependency>
    22. <groupId>org.springframework.boot</groupId>
    23. <artifactId>spring-boot-dependencies</artifactId>
    24. <version>2.2.2.RELEASE</version>
    25. <type>pom</type>
    26. <scope>import</scope>
    27. </dependency>
    28. <!--spring cloud Hoxton.SR1-->
    29. <dependency>
    30. <groupId>org.springframework.cloud</groupId>
    31. <artifactId>spring-cloud-dependencies</artifactId>
    32. <version>Hoxton.SR1</version>
    33. <type>pom</type>
    34. <scope>import</scope>
    35. </dependency>
    36. <!--spring cloud 阿里巴巴-->
    37. <dependency>
    38. <groupId>com.alibaba.cloud</groupId>
    39. <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    40. <version>2.1.0.RELEASE</version>
    41. <type>pom</type>
    42. <scope>import</scope>
    43. </dependency>
    44. <!--mysql-->
    45. <dependency>
    46. <groupId>mysql</groupId>
    47. <artifactId>mysql-connector-java</artifactId>
    48. <version>${mysql.version}</version>
    49. <scope>runtime</scope>
    50. </dependency>
    51. <!-- druid-->
    52. <dependency>
    53. <groupId>com.alibaba</groupId>
    54. <artifactId>druid</artifactId>
    55. <version>${druid.version}</version>
    56. </dependency>
    57. <!--mybatis-->
    58. <dependency>
    59. <groupId>org.mybatis.spring.boot</groupId>
    60. <artifactId>mybatis-spring-boot-starter</artifactId>
    61. <version>${mybatis.spring.boot.version}</version>
    62. </dependency>
    63. <!--junit-->
    64. <dependency>
    65. <groupId>junit</groupId>
    66. <artifactId>junit</artifactId>
    67. <version>${junit.version}</version>
    68. </dependency>
    69. <!--log4j-->
    70. <dependency>
    71. <groupId>log4j</groupId>
    72. <artifactId>log4j</artifactId>
    73. <version>${log4j.version}</version>
    74. </dependency>
    75. </dependencies>
    76. </dependencyManagement>