1. 程式人生 > >idea中xml編譯不到target資料夾裡的問題

idea中xml編譯不到target資料夾裡的問題

pom.xml檔案中新增:

<resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>*</include>
                    <include>*/*</include>
                </includes>
<filtering>true</filtering> </resource> <!--mybatis 介面xml編譯到原始碼下面 --> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include
>
</includes> </resource> </resources>

重新build一下,OK!