dao:
数据库和持久层应用程序抽象出来的一个接口
设计层面考虑应用程序的具体功能有哪些,如何实现,参数是什么,返回值是什么,预先设定好,再不改动。
public interface PersonDao{
public Person login(String name,String password);
public boolean updatePersonById(Person person);
public boolean addPerson(Person person);
public boolean deleteById(int id);
public List<Person> getAll();
public List<Person> getPersonByLikeWithLimit(String str,