Mybatis 解决异常org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

1、debug日志出现Property ‘mapperLocations’ was not specified.
解决方案:pom文件中build标签中加入如下代码

        <resources>
            <resource>
                <directory>src/main/javadirectory>
                <includes>
                    <include>**/*.propertiesinclude>
                    <include>**/*.xmlinclude>
                includes>
                <filtering>falsefiltering>
            resource>
        resources>

你可能感兴趣的:(java)