Relative Content

Tag Archive for spring

Spring/Java multiple shared modules for different databases

I’m implementing a software based on the micro-service architecture using Spring/Java. Each micro-service connects to either a PostgreSQL or a MongoDB database. Is it standard practice to have a shared module that contains database-agnostic components (e.g. entity classes, models, and common repository/service interfaces used by both databases) and then have two other shared modules (one for Postgres and the other for MongoDB) importing the first shared module and implement database-specific implementation of those common components?

How to use a bean inside BeanFactoryPostProcessor

I have a Spring application with one specific need: I have to create at runtime beans depending on values that I can get only using another bean.
Let me explain it quickly, I have a bean that handles configuration (basically it will retrieve parameters from an external api), and depending on the configuration retrieved I want to generate beans inside a BeanFactoryPostProcessor.

Muti-tenant Webapp Setup Defaults and Configurations

I have a multi tenant webapp. When a new tenant is created there is a bunch of defaults and configurations that need to be created in the DB for the new tenant, so of these inserts are related to each other and must happen in a specific order so I can get the ID of the related item. Here is an short version of what needs to happen

Spring Framework jar file download without JFrog

How to download spring JarFile without JFog as I can’t download spring framework jar files. The website redirecting me to the login page. JFog page prompts me to enter username and password without a new registration option.