65

借助Gradle Plugin解决模块化开发中模块如何对外暴露接口-java架构师1的博客

 5 years ago
source link: http://blog.51cto.com/13981400/2328841
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
直奔主题,在模块化开发中,模块间的数据交流大多数同学会采用以接口作为通信协议的方式。需要面对的问题有以下几点:接口由谁来维护?这个问题简单,由提供服务的模块来维护。接口怎么暴露?打成jar包,发布到maven。接口在哪里维护?现在可以参考的方案有三种:一.所有相关模块的接口统一在一个模块中维护;二.各个模块的接口分别在自建一个新的模块中维护,通过命名规则一一对应;三.像微信的.api方案,使用特殊

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK