简体   繁体   中英

Expose Interface from a WAR file

I want to write a plugin for my web application.

I have an interface which is in the WAR file. Now in the plugin which will be a JAR file, I want to use this interface.

How can I do it? I don't want the coding part, what I am looking for is the approach to do this.

Move the interface out of the WAR file and into a JAR file. Make the WAR file depend on the JAR file, and make your plugin JAR file depend on it as well.

You cannot have a JAR file depend on a WAR file directly.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM