设为首页 加入收藏

TOP

简单Spring+Struts2+Hibernate框架搭建(一)
2017-10-12 18:17:19 】 浏览:9221
Tags:简单 Spring Struts2 Hibernate 框架 搭建

使用Maven+Spring+Struts2+Hibernate整合

 

  1. pom文件  
    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    	<modelVersion>4.0.0</modelVersion>
    	<parent>
    		<groupId>org.javasite</groupId>
    		<artifactId>JavaSite</artifactId>
    		<version>0.0.1-SNAPSHOT</version>
    	</parent>
    	<artifactId>SpringStruts2Hibernate</artifactId>
    	<packaging>war</packaging>
    
    	<dependencies>
    		<!-- https://mvnrepository.com/artifact/org.apache.struts/struts2-core -->
    		<dependency>
    			<groupId>org.apache.struts</groupId>
    			<artifactId>struts2-core</artifactId>
    			<version>2.3.24.1</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.apache.struts/struts2-spring-plugin -->
    		<dependency>
    			<groupId>org.apache.struts</groupId>
    			<artifactId>struts2-spring-plugin</artifactId>
    			<version>2.3.24.1</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-core -->
    		<dependency>
    			<groupId>org.hibernate</groupId>
    			<artifactId>hibernate-core</artifactId>
    			<version>4.1.6.Final</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
    		<dependency>
    			<groupId>mysql</groupId>
    			<artifactId>mysql-connector-java</artifactId>
    			<version>5.1.7</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-orm</artifactId>
    			<version>3.2.10.RELEASE</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-core</artifactId>
    			<version>3.2.10.RELEASE</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-beans</artifactId>
    			<version>3.2.10.RELEASE</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
    		<dependency>
    			<groupId>org.springframework</groupId>
    			<artifactId>spring-context</artifactId>
    			<version>3.2.10.RELEASE</version>
    		</dependency>
    		<!-- https://mvnrepository.com/artifact/org.springframework/spring-core -->
    		<dependency>
    			<groupId>org.springframework</g
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 1/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇JAVA垃圾回收机制概要 下一篇关于Springmvc中include与Sitemes..

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

最新文章

热门文章

C 语言

C++基础

windows编程基础

linux编程基础

C/C++面试题目