inotgo.com

Step 1 : What is fore-and-aft separation   
Step 2 : Related tutorials   
Step 3 : front end   
Step 4 : J2EE Way   
Step 5 : SSM Way   
Step 6 : Springboot Way   
Step 7 : vue + springboot   

Step 1 :

What is fore-and-aft separation

edit top fracture
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
A big dish chicken that needs popular teaching

Servlet and MVC of Models and views It is rendered on the server , The front and rear ends are not separated , use ajax Will separate the front and rear ends , Tesco finally understood this concept







The answer has been submitted successfully , Auditing . Please My answer Check the answer record at , thank you
answer Or code please Fill in at least one , If you have a problem , Please ask again , Otherwise, the webmaster may not see




2019-08-10 The front and rear ends are separated , Why not SSH edition ????
8 Wooden man 8

As the title .




1 One answer

Kobeyond
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
answer Or code please Fill in at least one , If you have a problem , Please ask again , Otherwise, the webmaster may not see




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
about J2EE- The front and rear ends are separated - The front and rear ends are separated Your questions

Try to provide Screenshot code and Abnormal information , Help to analyze and solve problems . You can also enter this station QQ Group communication : 496725845
Ask questions and try to provide complete code , Environment description , The more conducive to the recurrence of the problem , The faster your question can be answered .
Have questions about the code in the tutorial , Please provide which step , Which line is in doubt , This makes it easy to quickly locate the problem , Improve the speed at which questions are answered
In the thousands of questions that already exist , A considerable proportion , Because of the use of and webmaster Different versions of the development environment Resulting in , For example jdk, eclpise, idea, mysql,tomcat Wait, the version of the software is inconsistent .
Please use the same version as the webmaster , You can save yourself a lot of learning time . The webmaster sorted out the software versions used in teaching , It's all here , Convenient for everyone to download : /k/helloworld/helloworld-version/1718.html

Upload screenshot