Hello, I need an advice. I have several different ...
# spring
m
Hello, I need an advice. I have several different projects that use around 4 different databases. Some use all, some use less... Due to the fact that is hard to maintain the persistence code for those projects (because spring-boot autoconfiguration isn't enough) I decided to create a maven project that only deals with the database connections, entities, repos and such... This way I don't need to copy/paste entities, repos, etc everytime I created a new project... Each collection of database, repos and it's entities are in different packages. When I want to import it on a project, all I need to do is point Maven to it and add the package for the database I want on the @ComponentScan.