java - WebService:如何实现插件式的WebService呢?
高洛峰
高洛峰 2017-04-18 10:53:23
0
2
660

需要用Java为多方提供不同的北向接口

例如部署在现场A的开放接口1、2,部署在现场B的开放接口3

以前的实现方式是将接口1、2、3都打包到工程中,不需要的可以不对外发布,但现在需改为可配置、可插拔的北向接口

我首先想到的是将接口打包成Jar,当需要时随时丢进工程,并重启工程重新加载,请问有实现过类似需求的吗?是怎样的思路呢?

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all (2)
黄舟

Is it good to implement configurability? The project is still in the form of a jar package, but can you configure your interface through configuration?

    黄舟

    In fact, you can define an identifier on each interface. If the identifier is turned off, the business logic will not be executed, and the interface will not actually return business data, thus achieving the function you want

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!