Home > Back-end >  Check all the afternoon I don't know what reason
Check all the afternoon I don't know what reason

Time:10-04

Use mybatis pagehelper has been submitted to the type conversion error

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);
List List=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
  • Related