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.