开发一套后端(java)接口,也可以共用pc端和app端、微信端、webapp端吗??前后端分离
高洛峰2017-04-18 10:32:50
Of course. The questioner mentioned financial platforms in his comments, so more security issues should be considered. Since RESTful is stateless, a middle layer may need to be added based on this.
You can refer to: Thoughts and Practice of Front-end and Back-end Separation (1) and other series of articles
As for saying restful
style is popular... we can give an example: this year, we will say that javascript is more popular, let's learn javascript. But you must know that the popularity of any language or framework or tool is born to solve problems in a certain scenario. The previous article also mentioned Why the front and back ends should be separated, I suggest you take a look.
PHPz2017-04-18 10:32:50
Yes, because they are all supported by the network, but they are expressed in different ways. You can access it directly from the browser during testing