Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/m...

 

 

maven因爲他的約定大於配置,咱們以後能夠能遇到咱們寫的配置文件,沒法被導出或者生效的問題,解決方法:java

 

 

 

<build>
        <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>
    </build>
相關文章
相關標籤/搜索