论文部分内容阅读
从训练需求出发、设计并实现基于互联网资源的虚拟OJ系统。该系统采用Spring+Struts2+Hibernate框架搭建系统总体框架,使用Java Script脚本语言完成前台页面与后台服务器之间的数据转换。该系统使用爬虫技术,根据实体OJ的URL获取网页地址,再根据实体在线测评系统的网页设计格式使用正则表达式获取网页内容。子系统一共包括四个模块:爬虫模块,比赛模块,任务模块和教程模块。该系统具有功能完善、易使用、易拓展、框架模块化等特点,具有很高的实用价值。
Based on the training requirements, a virtual OJ system based on Internet resources is designed and implemented. The system uses Spring + Struts2 + Hibernate framework to build the overall system framework, using Java Script scripting language to complete the data conversion between the front page and the background server. The system uses the crawler technology to obtain the webpage address according to the URL of the entity OJ, and then uses the regular expression to obtain the webpage content according to the webpage design format of the entity online evaluation system. Subsystem includes a total of four modules: the crawler module, competition module, task module and tutorial module. The system has the features of complete functions, easy to use, easy to expand, modular framework and so on, with high practical value.