It is possible to do this. For a relevant example and further information, take a look at this repository, which may be helpful in understanding and implementing a solution: https://github.com/mmushfiq/springboot-microservice-common-lib