Exception in thread "main" org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ssm.dao.UserMapper.addUser
mybatis找不到UserMapper.xml文件,需要在mybatis-config中配置
<mappers> <mapper resource="UserMapper.xml"/> </mappers>
解决MyBatis找不到Mapper文件
本文介绍了解决MyBatis在运行时无法找到Mapper文件的问题,并提供了在mybatis-config.xml中正确配置Mapper资源的方法。
Exception in thread "main" org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ssm.dao.UserMapper.addUser
mybatis找不到UserMapper.xml文件,需要在mybatis-config中配置
<mappers> <mapper resource="UserMapper.xml"/> </mappers>
2243
2085
2万+
471
842
729
1364
2560
1163
1365

被折叠的 条评论
为什么被折叠?