We are working on PAAS applications(Spring Boot) which is having 2-3 different modules in which each module have some redundant code of creating,closing database and MQ connection.We are using Hikari datasource for maintaining pool connections. We are planning to centralise the code which contains configuration data and put that as parent dependency in others. Is their any suitable java design pattern which fulfills my this use case?
Aucun commentaire:
Enregistrer un commentaire