The Web Development Rendering page of Spring boot Learning (iv) was written in the previous article--Thymeleaf
Next, let's take a look at Freemarker integration Springboot
See controller:
@RequestMapping ("/") public
String index (Modelmap map) {
map.addattribute ("name", "Xiao Jin gg");
Return "index";
}
Pom.xml introduced:
Write a HELLO.FTL file with the path of this file un
The Web Development Rendering page of Spring boot learning (d) was written in the previous chapter--Thymeleaf
Next, let's take a look at Freemarker integration Springboot
See controller:
@RequestMapping ("/") public
String index (Modelmap map) {
map.addattribute ("name", "Xiao Jin gg");
Return "index";
Pom.xml introduced:
Write a HELLO.FTL file that has a path under Src/main/
Fourth Chapter TemplateIn the previous chapter, we mixed the HTML code with the Python code in the view.py file. But the disadvantage of doing so is undoubtedly obvious, citing Djangobook's argument:
Any changes to the design of the page must be modified accordingly to the Python code. Site design modifications are often much more frequent than the underlying Python code, so it would be much easier to change the design without Python code modifications.
Python code writin
developers must be careful enough to work with web designers to avoid overwriting the other party's updates.
* Combined Java and HTML can result in poor readability, especially if you do not carefully follow a unified programming specification.
*jsp is very similar to the ASP (Active Server Pages). The main difference is that the object of JSP operation is JavaBeans, which has platform-independent nature. The object that ASP manipulates is COM object
mod_php or Mod_perl. You don't necessarily use these internal information, but because we're focused on fast web development, we'll cover the high-level interface that it provides for the PSP.
With Mod_python, you can take advantage of Python and its modules to write server Pages that can be cached and packaged in a reusable template format. Note that the PSP
background management interface.Django is an open-source Web application framework, written by Python. Using MVC's software design model, the main goal is to make it easy to develop complex, database-driven Web sites. Django focuses on component reusability and "pluggable", agile development and dry rules (Don ' t Repeat Yoursef). Python is commonly used in Djan
ways:ThymeleafFreemarkerVelocityGroovyMustacheSpring boot recommends using these template engines to avoid using JSPs, and if you must use JSP, you will not be able to implement many of the features of spring boot, as described later: support for JSP configurationWhen you use any of the above template engines, their default template configuration path is: Src/ma
find the wrong way. In the face of powerful tools, jQuery is relentlessly crushed. In the next few years, Google launched a succession of the corresponding Closure template language, and the corresponding Closure Stylesheet compiler, so the Web three-piece set, HTML + JS + CSS in the Closure World has a corresponding tool in the G Within the oogle, most of the front-end projects are developed based on this
Web development is a critical part of development, and the core content of web development consists mainly of servelet containers and SPRINGMVC.Web Development support for 1.SpringBoot. Springboot provides spring-boot-starter-
Boot provides the default configuration of the template engine mainly in the following ways:
Thymeleaf
Freemarker
Velocity
Groovy
Mustache
Spring boot recommends using these template engines to avoid using JSPs, and if you must use JSP, you will not be able to implement many of the features of spring boot, as described later: support for JSP configurationWhen you use any of th
interface definition-The project catalog can be defined as neededBy using Node Express, you can use less code to implement functionality. At least by using Node Express, you can implement middleware to respond to HTTP requests, define routing tables to define response functions for different requests, and use the template engine to output HTML pages.For a novice NodeJS developer, Express also offers the following benefits: 1) Express's learning curve
Python Web development framework-Django (1), python-django
In the past, web. py (another lightweight web Development Framework) was used as a monitoring and management platform, so it was hard to pick up without making special records. Recently, a log aggregation system is u
ResponseResponse Object:When a Web request is processed by the server, the response of the user request is returned, and the response object is used, depending on the response to the user, the response object has the following processing methods1. If a legitimate response object is returned, it is returned directly from the view.2. If a string is returned, the response object is created with the string data and default parameters.3. If a tuple is retu
configuration files and data models. It can run on a mod_python or MOD_WSGI-enabled Apache2, or any Web server that is compatible with WSGI (Web server Gataway Interface).1. Django's rapid development
First step (model): Design your own data model.
Step Two (View): Create a page template. Django's own HTM
core of the Django framework includes an object-oriented mapper as a data model (defined in the form of Python classes) and a medium between relational databases, a URL dispatcher based on regular expressions, a view system for processing requests, and a templating system. The core framework also includes:
A lightweight, stand-alone Web server for development and testing.
A form serialization
simply to delete and change the search. A lot of friends on the Internet to find some Django-related information after learning, you can use the Django ORM framework to achieve some data deletion and modification, I feel as if the key to open the door of the future, greatly pleased. I don't know, this is just the first step for a junior Django development engineer. If you want to use Django to make a decent website, you also need to learn more advanc
commonly used in Django, even including configuration files and data models. It can run on Mod_python or MOD_WSGI-enabled Apache2, or any Web server that is compatible with WSGI (Web server Gataway Interface).
1. Django's rapid development
The first step (model): Design your own data model.Second Step (View): Create a Web
of the unified use of JavaScript, there is no barrier to switch language;Three is the speed fast, very fast! This is due to the innate asynchronous nature of node. js.In just a few years after the birth of node. JS, there are countless web frameworks, ORM frameworks, template engines, test frameworks, automated build tools, and many more, even JavaScript drivers.Common
Full-end Web development using JavaScript and Java reading notes there are only two major challenges in the field of computer science: Cache invalidation and naming. REST (representational state Transfer) technology, he suggests a style of messaging for Web services.Chapter One: Change as a result of changeEntrepreneurs are always looking for change, adapting to
. It can run on a mod_python or MOD_WSGI-enabled Apache2, or any Web server that is compatible with WSGI (Web server Gataway Interface).1. Django's rapid developmentFirst step (model): Design your own data model.Step Two (View): Create a page template. Django's own HTML template language makes it easy to combine data a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.