Maven和Mybaties結合,Maven不處理java文件夾下面的配置文件

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.shop.mapper.TbItemMapper.selectByExample java


//遇到這個錯誤的緣由是由於Maven和Mybaties結合,Maven只會處理resource文件夾下面的配置文件而不會處理java這個文件夾下面的配置文件。因此遇到這個問題須要加相應的配置 apache

<build> app

         <resources> ui

            <resource> spa

                <directory>src/main/java</directory> xml

                <includes> io

                    <include>**/*.properties</include> 配置

                    <include>**/*.xml</include> select

                </includes> exception

                <filtering>false</filtering>

            </resource>

        </resources>

</build>
相關文章
相關標籤/搜索