Introduction to static pages

Why use a static web technology

Static web solutions use more in the actual development, such as news sites, portals or news channel in the article class channel.

 

Electricity supplier for the product detail page of the site, at least millions of merchandise, each item there are a lot of information, this situation also applies to the use of static pages to resolve.

Common static page caching techniques and technologies are designed to reduce the pressure to access the database, but depending on the specific application scenarios, the cache is more suitable for small-scale data, and static pages are more suitable for large-scale and relatively less frequent data changes . Also static web page is also beneficial to SEO.

In addition, we show the page if the pure static form, you can use this high-performance Nginx web server to deploy. Nginx can carry 50,000 concurrent, but only a few hundred Tomcat. About Nginx we will explain in detail in subsequent lessons.

Today we'll study the static pages of technical ---- Freemarker.

What is Freemarker

FreeMarker is a written in the Java language template engine, which is based on a template to generate text output. FreeMarker has nothing to do with the Web container, that is in the Web, it does not know Servlet or HTTP. It not only can be used to achieve technical presentation layer, but also can be used to generate such as XML, JSP or Java.

 

Guess you like

Origin www.cnblogs.com/coder-wf/p/12517854.html
Recommended