Step 2 : Related tutorials Step 3 : front end Step 4 : J2EE Way Step 5 : SSM Way Step 6 : Springboot Way Step 7 : vue + springboot
Understand the concept of front and rear end separation , We must first find out what is
wrong The front and rear ends are separated .
In traditional practice , For example servlet, springmvc,struts, tomcat Will run in the background Java code , Then generate... In the background all-out html code , Then pass http The agreement put html Transfer the code to the browser . The problem with this is : 1. When running in the background , If you need to connect to many databases, you can find the required data , So this preparation html The process will be slow , Generated at the same time html Also relatively large , Users may feel slow . 2. The coupling degree of front and rear end development is also very high , Sometimes we have to wait for each other , In this way, the development efficiency of both sides is reduced . So what is the concept of front and rear end separation ? html The content of the page can be simply regarded as Including the data part and not including the data part . So first prepare a... That does not contain data html, Pass it to the browser , The speed itself will be very fast , Because there is no database operation that takes the most time . Then pass Ajax Technology , Just get... From the server “ Pure data ”, Then display the pure data in html Go ahead . The benefits of this : 1. Even the background database takes more time , But the user experience is also better than the previous way , Because users will see some pages first , See the data later , It's better than waiting in circles on a blank page . 2. The back end only provides data , Therefore, the coupling between front and rear end development is reduced a lot , The overall development efficiency can be greatly improved .
The station continuously provides front and rear end separation realized by various technologies , But it's scattered , Many students mistakenly think that they have not provided relevant tutorials , This knowledge point summarizes these tutorials of separation of front and back ends , Convenient for everyone to learn .
The front part needs to master : AJAX and JSON There are... Before and after interaction 3 A kind of implementation : J2EE, SSM and Springboot.
Ajax It can be divided into primary and JQuery Two :
Native Ajax,
JQuery In Ajax
JSON Is the data transmission format : JSON course
J2EE Way Means by Servlet To be a server :
J2EE The front and rear ends are separated in this way
SSM Way Means by SpringMVC To be a server :
SSM The front and rear ends are separated in this way
Springboot The way is essentially through SpringMVC To be a server :
Springboot The front and rear ends are separated in this way
The official account of programming , Follow and get the latest tutorials and promotions in real time , thank you .
![]()
Q & A area
2020-02-11
This ghost concept
The answer has been submitted successfully , Auditing . Please
My answer Check the answer record at , thank you
2019-08-10
The front and rear ends are separated , Why not SSH edition ????
1 One answer
Kobeyond Jump to the problem location Answer time :2020-12-22
yes , we have , But it has basically been SSM Eliminated . The webmaster also had SSH Of the tutorial , I can't see it now , I guess it's off the shelf , So I didn't write .
The answer has been submitted successfully , Auditing . Please
My answer Check the answer record at , thank you
2019-04-14
Half separated
2019-01-31
The front and rear ends are separated
2019-01-26
About the current trend and learning direction of front and rear end separation
Please... Before asking questions land
The question has been submitted successfully , Auditing . Please
My question Check the question record at , thank you
|