隨筆 - 16  文章 - 0  trackbacks - 0
          <2012年2月>
          2930311234
          567891011
          12131415161718
          19202122232425
          26272829123
          45678910

          常用鏈接

          留言簿

          隨筆檔案

          友情鏈接

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          通過Maven快速搭建Struts2 + Spring + myBatis開發(fā)環(huán)境,避免自己下載各類Java包引起的版本沖突,POM.xml負(fù)責(zé)整個Maven工程的jar包依賴管理管理。

          POM.xml文件內(nèi)容如下

          <project xmlns="http://maven.apache.org/POM/4.0.0  <modelVersion>4.0.0</modelVersion>
           <groupId>myProject</groupId>
           <artifactId>myproject</artifactId>
           <version>0.0.1-SNAPSHOT</version>
           <properties>
            <project.build.sourceEncoding>UTF8</project.build.sourceEncoding>
            <java.home>C:\Program Files\Java\jdk1.7.0_02</java.home>
           </properties>
           <profiles>
            <profile>
             <id>default-tools.jar</id>
             <activation>
              <property>
               <name>java.vendor</name>
               <value>Sun Microsystems Inc.</value>
              </property>
             </activation>
             <dependencies>
              <dependency>
               <groupId>com.sun</groupId>
               <artifactId>tools</artifactId>
               <version>1.5.0</version>
               <scope>system</scope>
               <systemPath>${java.home}/lib/tools.jar</systemPath>
              </dependency>
             </dependencies>
            </profile>
           </profiles>
           <dependencies>
            <dependency>
             <groupId>org.freemarker</groupId>
             <artifactId>freemarker</artifactId>
             <version>2.3.18</version>
            </dependency>
            <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-core</artifactId>
             <version>2.3.1.2</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-core</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-web</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.apache.struts</groupId>
             <artifactId>struts2-spring-plugin</artifactId>
             <version>2.3.1.2</version>
            </dependency>
            <dependency>
             <groupId>org.mybatis</groupId>
             <artifactId>mybatis</artifactId>
             <version>3.0.6</version>
            </dependency>
            <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-core</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.mybatis</groupId>
             <artifactId>mybatis-spring</artifactId>
             <version>1.0.2</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-beans</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.springframework.security</groupId>
             <artifactId>spring-security-web</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-jdbc</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-context</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-context-support</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
            <dependency>
             <groupId>org.springframework</groupId>
             <artifactId>spring-expression</artifactId>
             <version>3.1.0.RELEASE</version>
            </dependency>
           </dependencies>
          </project>

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 阿克| 固安县| 高密市| 朔州市| 天镇县| 梁平县| 同心县| 乾安县| 樟树市| 云龙县| 楚雄市| 潮安县| 雷波县| 始兴县| 乐山市| 同德县| 措勤县| 波密县| 枝江市| 靖江市| 内乡县| 大洼县| 河西区| 永州市| 安义县| 于田县| 瑞昌市| 蓝田县| 锡林郭勒盟| 珠海市| 康乐县| 南安市| 博湖县| 长垣县| 道孚县| 河西区| 维西| 齐齐哈尔市| 乐业县| 平果县| 西贡区|