Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义mapper接口错误 #3

Open
linxianqing opened this issue Mar 18, 2018 · 3 comments
Open

自定义mapper接口错误 #3

linxianqing opened this issue Mar 18, 2018 · 3 comments

Comments

@linxianqing
Copy link

在xml文件中定义了一个接口,提示 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

@yujunhao8831
Copy link
Owner

你需要多检查检查,原项目是可以跑的,是不是你在移植过程中自己定制化的项目中没配置好

@linxianqing
Copy link
Author

linxianqing commented Mar 23, 2018

项目是直接克隆的
UserMapper.xml
<select id="test" resultType="com.aidijing.user.domain.User"> SELECT * from aidijing_user </select>

UserMapper.java
List<User> test();

UserServiceImpl.java
@Autowired UserMapper userMapper;
@Override public List<User> test() { return userMapper.test(); }

结果是org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

@xiangyaoping
Copy link

项目是直接克隆的
UserMapper.xml
<select id="test" resultType="com.aidijing.user.domain.User"> SELECT * from aidijing_user </select>

UserMapper.java
List<User> test();

UserServiceImpl.java
@Autowired UserMapper userMapper;
@Override public List<User> test() { return userMapper.test(); }

结果是org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
后来解决了嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants