To the situation of hardness of Mybatis pagination, propose an interceptor based general physical pagination component. The component is designed by MVC(model-view-controller). Controller is realized using annotation based controller of Spring MVC. To design the business logic layer core method into general, DAO method custom and generic model was introduced. Interceptor was introduced into data persistence layer to realize physical pagination. JSP is used in page displaying. Give the detailed realization process of the component. Application results show that the proposed component has good generalization and portability, high execution efficiency and better flexibility.
Read full abstract