AJAX, JS, Node.js, Query, JSP, Servlet, SpringMVC, Tomcat, isolated front and rear ends, Json

Before many did not understand the concept of always felt good, comb again today

1.Ajax both a front-end API, this technology can request additional data to the server without having to uninstall the page, refresh the page is no new data can be obtained, will bring a better user experience.

It is the underlying XHR implemented, XHR object contains three attributes: 1. Method Type (POST / GET) 2.URL 3.async (whether asynchronous, synchronous set meaningless)

2.JS is JavaScript, a programming language, generally used in the HTML file, JS general operating environment is the browser, and node.js, the equivalent of our JDK Java backend.

3.JSP is essentially a simplified version of the servlet, JSP Java code is written in HTML, servlet is written in Java HTML code, both belong to the back-end.

On the relationship JSP, servlet, SpringMVC of this made it very clear https://blog.csdn.net/zt15732625878/article/details/79951933

4.SpringMVC of M (model) layer is the service layer + dao layer, view layer is the layer JSP

5.Tomcat is a servlet / JSP container, jetty, too, is the servlet / JSP's "JDK", Tomcat is running on the Web server, the Tomcat Web server is the "JDK",

Web server and the client is HTTP communications

6. before and after the end of the separation, the rear end never html page and other front-end code, that JSP is not, that's View SpringMVC how to generate it?

7.Json

 

Guess you like

Origin www.cnblogs.com/MopHunter/p/11210465.html