idea maven mybatis建立

创建maven工程  选中对号 不用选具体的工程要不然没有resource目录!!!


web-app

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/maven-v4_0_0.xsd">
  <modelVersion>4.0.0modelVersion>
  <groupId>mybaitsgroupId>
  <artifactId>mybaitsartifactId>
  <packaging>warpackaging>
  <version>1.0-SNAPSHOTversion>
  <name>mybaits Maven Webappname>
  <url>http://maven.apache.orgurl>
  <dependencies>
    <dependency>
      <groupId>junitgroupId>
      <artifactId>junitartifactId>
      <version>RELEASEversion>
    dependency>
    
    <dependency>
      <groupId>asmgroupId>
      <artifactId>asmartifactId>
      <version>3.3.1version>
    dependency>

    <dependency>
      <groupId>cglibgroupId>
      <artifactId>cglibartifactId>
      <version>2.2.2version>
    dependency>

    <dependency>
      <groupId>commons-logginggroupId>
      <artifactId>commons-loggingartifactId>
      <version>1.1.1version>
    dependency>
    <dependency>
      <groupId>org.javassistgroupId>
      <artifactId>javassistartifactId>
      <version>3.17.1-GAversion>
    dependency>
    <dependency>
      <groupId>mysqlgroupId>
      <artifactId>mysql-connector-javaartifactId>
      <version>5.1.6version>
    dependency>
    <dependency>
      <groupId>log4jgroupId>
      <artifactId>log4jartifactId>
      <version>1.2.7version>
    dependency>
    <dependency>
      <groupId>org.slf4jgroupId>
      <artifactId>slf4j-apiartifactId>
      <version>1.7.5version>
    dependency>

    <dependency>
      <groupId>org.slf4jgroupId>
      <artifactId>slf4j-log4j12artifactId>
      <version>1.7.5version>
    dependency>
    <dependency>
      <groupId>org.mybatisgroupId>
      <artifactId>mybatisartifactId>
      <version>3.3.0version>
    dependency>
  dependencies>
  <build>
    <finalName>mybaitsfinalName>
    <resources>
      <resource>
        <directory>src/main/javadirectory>
        <includes>
          <include>**/*.xmlinclude>
        includes>
      resource>
    resources>
      <plugins>
          <plugin>
              <groupId>org.apache.maven.pluginsgroupId>
              <artifactId>maven-compiler-pluginartifactId>
              <version>3.5.1version>
              <configuration>
                  <source>1.8source>
                  <target>1.8target>
              configuration>
          plugin>
      plugins>
  build>
project>

你可能感兴趣的:(mybatis)