SpringMvc Maven基本配置

来源:互联网 发布:人工智能下肢辅助支架 编辑:程序博客网 时间:2024/04/30 16:12
<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/maven-v4_0_0.xsd">  <modelVersion>4.0.0</modelVersion>  <groupId>com.leehuan</groupId>  <artifactId>springmvcdemo</artifactId>  <packaging>war</packaging>  <version>1.0-SNAPSHOT</version>  <name>springmvcdemo Maven Webapp</name>  <url>http://maven.apache.org</url>  <!--用于标识版本信息,下方使用${Spring.version}-->  <properties>    <spring.version>4.2.6.RELEASE</spring.version>    <hibernate.version>5.1.0.Final</hibernate.version>  </properties>  <dependencies>    <dependency>      <groupId>junit</groupId>      <artifactId>junit</artifactId>      <version>3.8.1</version>      <scope>test</scope>    </dependency>    <!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->    <dependency>      <groupId>org.springframework</groupId>      <artifactId>spring-context</artifactId>      <version>4.2.5.RELEASE</version>    </dependency>    <!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->    <dependency>      <groupId>org.springframework</groupId>      <artifactId>spring-webmvc</artifactId>      <version>4.2.6.RELEASE</version>    </dependency>    <!-- https://mvnrepository.com/artifact/org.springframework.data/spring-data-jpa -->    <dependency>      <groupId>org.springframework.data</groupId>      <artifactId>spring-data-jpa</artifactId>      <version>1.10.1.RELEASE</version>    </dependency>    <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-entitymanager -->    <dependency>      <groupId>org.hibernate</groupId>      <artifactId>hibernate-entitymanager</artifactId>      <version>${hibernate.version}</version>    </dependency>    <!-- https://mvnrepository.com/artifact/org.hibernate/hibernate-c3p0 -->    <dependency>      <groupId>org.hibernate</groupId>      <artifactId>hibernate-c3p0</artifactId>      <version>${hibernate.version}</version>    </dependency>    <!-- https://mvnrepository.com/artifact/com.mchange/c3p0 -->    <dependency>      <groupId>com.mchange</groupId>      <artifactId>c3p0</artifactId>      <version>0.9.5.2</version>    </dependency>    <!-- https://mvnrepository.com/artifact/javax.servlet/jstl -->    <dependency>      <groupId>javax.servlet</groupId>      <artifactId>jstl</artifactId>      <version>1.2</version>    </dependency>    <!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->    <dependency>      <groupId>mysql</groupId>      <artifactId>mysql-connector-java</artifactId>      <version>5.1.39</version>    </dependency>  </dependencies>  <build>    <finalName>springmvcdemo</finalName>    <plugins>      <plugin>        <groupId>org.apache.maven.plugins</groupId>        <artifactId>maven-compiler-plugin</artifactId>        <configuration>          <source>1.8</source>          <target>1.8</target>        </configuration>      </plugin>    </plugins>  </build></project>
0 0
原创粉丝点击