【笔记】pom.xml配置参考

   < modelVersion >4.0.0</ modelVersion >
   < groupId >com.mqatest</ groupId >
   < artifactId >chapter2</ artifactId >
   < version >0.0.1-SNAPSHOT</ version >
   < packaging >war</ packaging >
   < name >Spring4.0</ name >
   < description >Spring4.0</ description >
    
   <!-- properties:是为pom定义一些常量,在pom中的其它地方可以直接引用。 -->
   < properties >
      <!-- 使用方式 如下 :${file.encoding} -->
     < file.encoding >UTF-8</ file.encoding >
     <!-- 
     <java.source.version>1.6</java.source.version>
     <java.target.version>1.6</java.target.version> -->
     < spring.version >4.2.2.RELEASE</ spring.version >
     < mysql.version >5.1.29</ mysql.version >
     < servlet.version >3.0-alpha-1</ servlet.version >
     < aspectj.version >1.8.1</ aspectj.version >
     < commons-codec.version >1.9</ commons-codec.version >
     < commons-dbcp.version >1.4</ commons-dbcp.version >
     < hibernate.validator.version >5.0.2.Final</ hibernate.validator.version >
     < slf4j.version >1.7.5</ slf4j.version >
     < testng.version >6.8.7</ testng.version >
   </ properties >
    
   <!-- 配置依赖 -->
   < dependencies >
     <!-- 配置spring模块类库 -->
     < dependency >
         < groupId >org.springframework</ groupId >
         < artifactId >spring-beans</ artifactId >
         < version >${spring.version}</ version >
     </ dependency >
     < dependency >
         < groupId >org.springframework</ groupId >
         < artifactId >spring-context</ artifactId >
         < version >${spring.version}</ version >
     </ dependency >
     < dependency >
         < groupId >org.springframework</ groupId >
         < artifactId >spring-context-support</ artifactId >
         < version >${spring.version}</ version >
     </ dependency >
     < dependency >
         < groupId >org.springframework</ groupId >
         < artifactId >spring-jdbc</ artifactId >
         < version >${spring.version}</ version >
     </ dependency >
     < dependency >
         < groupId >org.springframework</ groupId >
         < artifactId >spring-webmvc</ artifactId >
         < version >${spring.version}</ version >
     </ dependency >
     <!-- 配置数据库驱动类库 -->
     < dependency >
         < groupId >mysql</ groupId >
         < artifactId >mysql-connector-java</ artifactId >
         < version >${mysql.version}</ version >
     </ dependency >
     <!-- 依赖连接池类库 -->
     < dependency >
         < groupId >commons-dbcp</ groupId >
         < artifactId >commons-dbcp</ artifactId >
         < version >${commons-dbcp.version}</ version >
     </ dependency >
     <!-- 依赖的web类库 -->
     < dependency >
         < groupId >javax.servlet</ groupId >
         < artifactId >servlet-api</ artifactId >
         < version >${servlet.version}</ version >
         < scope >provided</ scope >
     </ dependency >
     < dependency >
         < groupId >org.aspectj</ groupId >
         < artifactId >aspectjweaver</ artifactId >
         < version >${aspectj.version}</ version >
     </ dependency >
     < dependency >
         < groupId >org.testng</ groupId >
         < artifactId >testng</ artifactId >
         < version >${testng.version}</ version >
         < scope >test</ scope >
     </ dependency >
     < dependency >
         < groupId >org.springframework</ groupId >
         < artifactId >spring-test</ artifactId >
         < version >${spring.version}</ version >
         < scope >test</ scope >
     </ dependency >
     < dependency >  
         < groupId >junit</ groupId >  
         < artifactId >junit</ artifactId >  
         < version >4.9</ version >  
         < scope >test</ scope >  
     </ dependency >   
   </ dependencies >
 
</ project >
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值