Mybatis代理對象的生成

public interface UserMapper { //遵循四大原則 //接口方法名 ==user.xml中的id名字 //返回值類型 與Mapper.xml中的返回值類型同樣 //方法的入參與Mapper.xml中入參的類型要同樣 public User findUserById(Integer id);java }mysql ------------------------------
相關文章
相關標籤/搜索