Server rendering, how to do it, ask for an explanation

problem description

I am a java developer. Recently, I am not very clear about how this
server rendering is done. After reading the server rendering introduction of vue, I do not quite understand the previous writing interface of
. Then I get the data through js and show it again. What is this rendering?

what I understand is that the server acquires the data, splices it into html, and sends it directly to the client, but this process doesn"t quite understand how it is passed.
it feels that js is an invisible parameter. You can use it by writing any parameter. Where does this parameter come from? what"s the use? you don"t know what it contains.

the environmental background of the problems and what methods you have tried

read a lot of simple tutorials, a little understand, a little confused

Jun.30,2022

server rendering, according to your java, refers to the separation between the front and rear ends, and then directly returns to the browser rendering side after rendering the html directly through jsp.
until now, a new node layer is added between the front end and the back end, and the node layer is used to go to the back end to obtain interface data. And complete the data-side rendering of the page and return it to the browser. Of course, this includes some problems such as isomorphism of front-end code, routing synchronization, data flow synchronization and so on. The specific configuration is still quite complicated.


Modern front-end frameworks with relatively complete rendering documents such as vue belong to SPA, and all element nodes are generated by js. This generation process is generally executed by the framework's kernel code, but the problem caused by this is that the front-end compiled files are all js files, while html has only a few simple lines of content, thus creating a problem, how to solve the SEO problem. So the server rendering framework is generated, and the client components are rendered in the backend, and the overall composition is rendered by the framework, and then the page is sent to the client, which solves the problem of SEO.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c1464f-32edf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c1464f-32edf.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?