【求助】在使用ssm框架时,定义了mapper方法,在service中也可以调用,可在网页上显示找不到对应的mapper方法
****Mapper中的方法****
@Select("select * from signin limit #{0},#{1}")
@Result(column="userid",property="user",one=@One(select="com.xie.dao.UserMapper.get"))
public List<Sign> findAll(int start,int psize);
package com.xie.service;
service中的调用
@Service
public class SignService {
@Autowired
private SignMapper sm;
public Page findAllByPage(int pno,int psize){
Page<Sign> page=new Page<>(pno,psize);
page.setTotalCount(sm.count());
int start=page.getOffset();
List<Sign> list=sm.findAll(start, psize);
page.setResult(list);
return page;
}
}
controller的内容
@RequestMapping("pageAll.do")
public String listAllbyPage(Integer pno,Integer psize){
if(pno==null){
pno=1;
}
if(psize==null){
psize=10;
}
HttpSession session=request.getSession();
Page<Sign> page=ss.findAllByPage(pno, psize);
session.setAttribute("pageAll", page);
return "/admin/signlist";
}
最后的结果
HTTP Status 500 - Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.xie.dao.SignMapper.findAll
求助大神 我该如何解决