You can look at Facebook’s thrift or Taobao’s dubbo, which are of course similar to rmi. If you don’t have to pursue distribution, the simplest thing is to provide the service as a separate jar package to different web projects.
In fact, no matter how you do it in the controller, you only need to do the operations of verifying parameters and combining/encapsulating results
You can look at Facebook’s thrift or Taobao’s dubbo, which are of course similar to rmi.
If you don’t have to pursue distribution, the simplest thing is to provide the service as a separate jar package to different web projects.
In fact, no matter how you do it in the controller, you only need to do the operations of verifying parameters and combining/encapsulating results