没有queryForObject(id,String ,String);这方法 你参数列表错误可以这样写 queryForObject(id, parameterObject) 及empBean em=new empBean(); queryForObject("logins",em);