首页 > 代码库 > mybatis加载xml配置文件

mybatis加载xml配置文件

<build>
    <finalName>bizcloud-tcb2b</finalName>
    <!-- mybatis加载xml配置文件的配置  -->
    <resources>
        <resource>
            <directory>src/main/java</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>false</filtering>
        </resource>
        <resource>
            <directory>src/main/resources</directory>
            <includes>
                <include>**/*.properties</include>
                <include>**/*.xml</include>
            </includes>
            <filtering>false</filtering>
        </resource>
    </resources>
     <!-- 配置Tomcat插件 -->
    <pluginManagement>
        <plugins>
            <plugin>
                <groupId>org.apache.tomcat.maven</groupId>
                <artifactId>tomcat7-maven-plugin</artifactId>
                <version>2.2</version>
                <configuration>
                    <!-- 定义项目发布路径,相当于把项目放入tomcat的ROOT目录 访问项目时:不需要使用项目名称,直接使用路径访问 -->
                    <path>/</path>
                    <port>8082</port>
                    <uriEncoding>utf-8</uriEncoding>
                                     
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>


本文出自 “北漂苍狼” 博客,请务必保留此出处http://beipiaocanglang.blog.51cto.com/11557903/1885569

mybatis加载xml配置文件