Stage 5 3. Micro Services [online] studies _day04 static pages _23- preview page - Page Preview Development





1, the user enters the front cms, click on "Page Preview" in the browser requests a page preview link cms.
2, cms and remote data acquisition request DataUrl model according to the page id query DataUrl.
3, cms according to the page id query page template content
4, cms perform static pages.
5, cms static content in response to the browser.
6, showing the contents of the page in a browser, the page preview function to achieve.


copntroller


In the final browser displays the contents of html. So here we use this annotation Controller

inherit baseCojntroller. Which it is actually offers Request and Response. Because we will be content to be displayed in html, so use the response object outputs it to the browser





so that the completion of the preview pages





Guess you like

Origin www.cnblogs.com/wangjunwei/p/11596611.html