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>
相关文章
相关标签/搜索