Stage 5 3. Micro Services [online] _day04 studies _21- static pages static pages - static test - static programming






Defined getModelByPageId



Definition of a special code to indicate that the page can not be found

acquisition method dataUrl data interfaces restTemplate

Map data call to get

Get the page template

Creating cmsTemplate of Dao


Service in the injection room.

Get the id of the template

directly copy the code in the test just

need to inject two




such live method calls, access to the content of the template

Perform static




Static approach a single package

The final main method call returns html content


The final main method

to get information page, to get inside the template id, then to query gridFS, finally got the contents of the template file. Then you can perform static








 

Guess you like

Origin www.cnblogs.com/wangjunwei/p/11595128.html
Recommended