CodePudding user response:
Not visible from your post code is what problem, stick your studentBean this class, and your pages posted getlist this method, or try to write in this way:
PageHelper. StartPage (page, rows);
ListList=studentService. GetList ();
ListResult result=new ListResult (new PageInfo(the list). GetTotal (), a list);
And make a suggestion, if you are a beginner SSM these frameworks, I think you still want to according to the specification, the controller, the service, the dao (mapper) in the three layers of figuring out what to write code, according to the rules, are helpful to study and work
CodePudding user response:
Use your method is ok, really thank you