What is the most suitable UI for Spring Boot

What's the best UI to use with Spring Boot?

A common question I get a lot is "What's the best UI to use with Spring Boot?"

UI, also known as "user interface", comes in many different styles.

  • A UI application might be a desktop application written in Java Swing, FX, or some other technology.

  • UI applications can also be mobile applications written for iOS or Android.

Usually, when someone asks what is the best UI to use with Spring Boot, the context of the question revolves around the popular Javascript framework.

Best Javascript framework for Spring Boot?

Is Angular JS the best UI for Spring Boot?

Is React the best UI for Spring Boot?

What about Vue.JS, is it a better fit for Spring Boot?

Or tell me your favorite Javascript framework in the comment area, and talk about whether it is the best for Spring Boot.

Let me explain why this really doesn't matter.

Revisit client server

Back in the 1990s, "client server" was the buzzword.

In order to provide a rich user experience and reduce the computing burden on the server, the company began to use personal computers.

Despite the passage of time, some things haven't changed much.

A JavaScript framework is a client-side technology that executes within the context of a web browser on a client device, which can be a desktop or mobile device.

Whereas Spring Boot is a server-side technology, which executes in the context of a server.

Client and server are two completely different computer systems, separated by communication API.

It's important to emphasize that these are two completely different computer systems, and when developing locally some things can get blurred.

All JavaScript frameworks support RESTful APIs .

Therefore, communication with Spring Boot is done via HTTP and JSON payloads. The communication layer completely abstracts the UI technology from the server technology.

通信层使客户端技术和服务器技术相互独立。这意味着,只要它们都支持HTTP和JSON,它们就可以通信。

Spring Boot应用程序同样支持AngularJS、ReactJS和Vue.JS。

Spring Boot应用程序可能无法区分一个JavaScript框架与另一个框架的差异。RESTful API抽象了用于客户端和服务器的技术选择。

即使客户端使用iOS或Android本机移动应用程序,只要与服务器的通信是通过RESTful接口执行的,它们之间就没有区别。

反之亦然。

那么,与AngularJS或React一起使用的最佳服务器端技术是什么?

.NET或Ruby是否比Spring Boot更好?

答案是无关紧要。

AngularJS应用程序使用Ruby服务器和使用Spring Boot服务器的功能不会有所不同。

需要考虑的事情

每个JavaScript框架都有自己的优点和缺点,这里不打算对它们进行辩论。

如果你需要确定与Spring Boot一起使用的最佳UI技术,应该专注于评估UI技术本身的选项。

考虑UI框架的优点,以推动你的决定。

关注哪个选项最能够支持您的项目和团队的需求?

值得注意的是,客户端技术和服务器端技术是相互独立的。

本文由 mdnice 多平台发布

Guess you like

Origin blog.csdn.net/qq_35030548/article/details/130092774