Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

How to define multiple schemas in the application properties file in Springboot?

Foremost, I am a newbie to Spring. I am writing a Springboot application, wherein there are two different DBConfiguration classes. For each Configurations class, I want to have separate schemas. I know @Entity annotation's "schema" attribute would serve the purpose. But I want to mention the schemas only in application.properties file. Something like: "jpa.properties.hibernate.default_schema:", but separate schemas for multiple dbconfigurations.

Comments