The invention relates to a page generation method and system. The method comprises the steps: (S1) configuring information in a display page through XML (eXtensible Markup Language) configuration files, so as to generate structured configuration information, wherein the configuration information comprises program codes, template pages and data result sets; (S2) querying the configuration information according to the program codes, acquiring the data result sets in the configuration information, acquiring data from a database according to the data result sets, processing the acquired data according to the data result sets, and outputting the processed data to the template pages, so as to generate a target page. According to the technical scheme of the invention, implementation staff can quickly assemble list pages or detail pages through the configuration information, the configuration information of the pages are saved in xml files through retrieving SQL (Structured Query Language), storage process, solr and memory, the dynamic configuration of the pages is realized, then, page configuration operation can meet the needs of different users, the efficiency of web page development is increased, and the workload of web page modification is reduced.