摘要
结合资源查询需求,讨论了用Spring MVC实现数据分页显示编程处理思路与技巧。在介绍Spring MVC的工作过程的基础上,分析讨论了资源查询分页处理的设计过程。控制器中通过URL参数传递分页信息,在业务逻辑中则通过方法参数传递分页信息,通过SQL语句的关联查询处理,可限制只从数据库读取当前页的数据。视图显示中,通过EL表达式获取来自模型的数据。文中介绍的方法具有较大通用性,实现了分页查询处理的高效化。
Combined with resource query demand, the paper discusses the ideas and skills of using Spring MVC to realize data paging display programming. Based on the introduction of the Spring MVC process, the paper analyzes design process of resource query paging processing. Controller could transfer paging information through URL parameter, the business logic could pass the paging information through the method parameter, and through the SQL statement, relational query processing could be restricted only from the database to read the current page data, In addition, in view display, data could be obtained through the EL expression from the model The method proposed in this paper has great versatility and good efficiency in realizing paging query processing.
出处
《智能计算机与应用》
2012年第5期20-22,共3页
Intelligent Computer and Applications