org.apache.ibatis.builder.BuilderException: Wrong namespace. Expected 'com.sc.starry_sky.dao.UserMapper' but found 'UserMapper'.
这个错误是没找到对应的mapper接口,检查namespace写对了没
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
出现这个错误的原因xml文件没有被编译,在pom文件里build标签下面加入如下即可解决
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>