规划sql语句
持久层
规划异常
com.abc.Aotian.service.ex.UserNotFoundException
用户名不存在
com.abc.Aotian.service.ex.PasswordNotMatchException
密码错误
它们都是ServiceException的子类。
在IUserService接口中添加新的抽象方法:
User login(String username, String password) throws UserNotFoundException, PasswordNotMatchException;