So I have 2 applications : A and B . application A contains a service that I created and I want to use in my application B. Is there a way to use that service instead of writing the code again?
CodePudding user response:
Is there a way to use that service instead of writing the code again?
Yes. The typical thing to do is to put the shared code in a library and consume that library from the applications which want to share that code.
btw... If you are usning Gradle, the micronaut-library
plugin at https://plugins.gradle.org/plugin/io.micronaut.library will be helpful.