org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example.demo.da

报错信息如下

报错原因

1、我的pom.xml里面没有加入mapper文件的配置信息

        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <includes>
                    <include>**/*.xml</include>
                </includes>
                <filtering>false</filtering>
            </resource>

2、我的UserMapper里面的

<mapper namespace="com.example.demo.dao.UserDao">写错了,我是复制别人的代码,这个namespace对应的是Dao层类名

发布了123 篇原创文章 · 获赞 4 · 访问量 5661

猜你喜欢

转载自blog.csdn.net/tian_jiangnan/article/details/105698838
今日推荐