search

Home  >  Q&A  >  body text

开发一套后端(java)接口,也可以共用pc端和app端、微信端、webapp端吗??前后端分离

开发一套后端(java)接口,也可以共用pc端和app端、微信端、webapp端吗??前后端分离

PHP中文网PHP中文网2769 days ago937

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 10:32:50

    Of course, the API can use the popular restful style

    reply
    0
  • 高洛峰

    高洛峰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 restfulstyle 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.

    reply
    0
  • PHPz

    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

    reply
    0
  • Cancelreply