Vue front-end +java back end

Source: Internet
Author: User
Tags message queue

Programme I:

In the JSP to write Vue that is the jquery into Vue on the line (do not know this can be a spa?) can you use Vue-router? It seems to be able to do, it will be messy, suitable for micro projects

When does Java back end fit Vue?

Write it found that the display of Web sites written in these front-end framework is too stupid, and there is no page interaction (a Click to change the page), native HTML still have to follow the rules of these frameworks rewrite, and tired and no meaning, completely with the background template can not be compared.
JSP rendering slow, background Java running slow. On the message queue to be able to asynchronously asynchronous AH, load balanced ah, on .... The foreground rendering is slow. Js/css and so on static file cache on the Cdn AH.
The back-end management platform is a good fit for these front-end frameworks



Programme II:

Since the use of Vue, then do not use JSP, JSP is the back-end rendering, the generation page to the browser, using Vue browser rendering; use Vue and Java to do a single page site, the browser for the first time to visit the Web site, Java static HTML page and JS to the browser, Browser Click to jump the front-end analog routing, and then JS use fetch,ajax these send HTTP request data, Java received HTTP request after the data returned, Vue receive requests to obtain data, to render the display page again.
Because Java is only responsible for using rest to send and receive JSON data without rendering the page, the performance must be higher.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.