• maven——pom.xml


    设置/使用 变量

    <-- 设置变量名 -->
    <properties>
        <spring.version>5.1.4.RELEASE</spring.version>
    </properties>
    
    <!-- 设置变量名 -->
    ${spring.version}
    设置变量

    Spring包

     1 <dependency>
     2     <groupId>org.springframework</groupId>
     3     <artifactId>spring-core</artifactId>
     4     <version>${spring.version}</version>
     5 </dependency>
     6 
     7 <dependency>
     8     <groupId>org.springframework</groupId>
     9     <artifactId>spring-beans</artifactId>
    10     <version>${spring.version}</version>
    11 </dependency>
    12 
    13 <dependency>
    14     <groupId>org.springframework</groupId>
    15     <artifactId>spring-context</artifactId>
    16     <version>${spring.version}</version>
    17 </dependency>
    18 
    19 <dependency>
    20     <groupId>org.springframework</groupId>
    21     <artifactId>spring-context-support</artifactId>
    22     <version>${spring.version}</version>
    23 </dependency>
    24 
    25 <dependency>
    26     <groupId>org.springframework</groupId>
    27     <artifactId>spring-aop</artifactId>
    28     <version>${spring.version}</version>
    29 </dependency>
    30 
    31 <dependency>
    32     <groupId>org.springframework</groupId>
    33     <artifactId>spring-aspects</artifactId>
    34     <version>4.0.9.RELEASE</version>
    35 </dependency>
    36 
    37 <dependency>
    38     <groupId>org.springframework</groupId>
    39     <artifactId>spring-tx</artifactId>
    40     <version>${spring.version}</version>
    41 </dependency>
    42 
    43 <dependency>
    44     <groupId>org.springframework</groupId>
    45     <artifactId>spring-web</artifactId>
    46     <version>${spring.version}</version>
    47 </dependency>
    48 
    49 <dependency>
    50     <groupId>org.springframework</groupId>
    51     <artifactId>spring-jdbc</artifactId>
    52     <version>${spring.version}</version>
    53 </dependency>
    Spring包

    SpringMVC包

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-webmvc</artifactId>
        <version>${spring.version}</version>
    </dependency>
    SpringMVC

    MyBatis

    1 <dependency>
    2     <groupId>org.mybatis</groupId>
    3     <artifactId>mybatis</artifactId>
    4     <version>3.4.6</version>
    5 </dependency>
    MyBatis

    log4j

    1 <dependency>
    2     <groupId>log4j</groupId>
    3     <artifactId>log4j</artifactId>
    4     <version>1.2.17</version>
    5 </dependency>
    log4j

    mysql

    1 <dependency>
    2     <groupId>mysql</groupId>
    3     <artifactId>mysql-connector-java</artifactId>
    4     <version>5.1.45</version>
    5 </dependency>
    mysql

    单元测试junit

    1 <dependency>
    2     <groupId>junit</groupId>
    3     <artifactId>junit</artifactId>
    4     <version>4.12</version>
    5     <scope>test</scope>
    6 </dependency>
    junit
  • 相关阅读:
    POJ 1007 DNA Sorting
    POJ 1005 I Think I Need a Houseboat
    POJ 1004 Financial Management
    POJ 1003 Hangover
    洛谷 P2064 奇妙的汽车
    01分数规划学习笔记
    线性基学习笔记
    codeforces 727F Polycarp's problems
    codeforces 722E Research Rover
    并查集学习笔记
  • 原文地址:https://www.cnblogs.com/xj76149095/p/10298877.html
Copyright © 2020-2023  润新知