HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx

关于ssm的maven项目tomcat启动时报HTTP Status 500 - Request processing failed异常:

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx

查找原因:发现一开始项目编译后缺少mapper.xml的文件

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx

idea查看项目编译后路径如下:

 HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx

解决方法:

在pom.xml文件中添加mapper模块配置,如下:

<!-- 添加此节点mybatis的mapper.xml文件避免被漏掉。 -->
    <build>
        <resources>
            <resource>
                <directory>src/main/java</directory>
                <includes>
                    <include>**/*.properties</include>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>
        </resources>
    </build>

重新发布后:

HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingEx

 

  

上一篇:二维哈希


下一篇:【转载】【《Real-Time Rendering 3rd》 提炼总结】(三) 第三章 · GPU渲染管线与可编程着色器 The Graphics Processing Unit