skip to Main Content

How to use common flyway migration files for both mysql and h2

I am using h2 database for testcase and mysql database as main DB. Do I able to maintain single flyway migration for both. I am using springboot framework. application-mysql.properties: spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.password=root spring.datasource.url=jdbc:mysql://localhost:3306/shipment-planning?useSsl=true spring.datasource.username=root spring.flyway.default-schema=shipment-planning spring.flyway.enabled=true spring.jpa.hibernate.ddl-auto=none spring.jpa.show-sql=true spring.flyway.locations = h2/db/migration…

VIEW QUESTION

Json – Convert String (Array) to List<Map<Stirng, Object>>

I have the following String. respData = "[{"pmtInd":"C"},{"pmtInd":"D"},{"pmtInd":"G"},{"pmtInd":"C"},{"pmtInd":"B"}]" I am trying to convert this into a List<Map<String, Object>>. However, I get some failures. Here are some things I have tried. List<Map<String, Object>> walletDetailsList = new ArrayList<>(); try { ObjectMapper objectMapper…

VIEW QUESTION

Configuring properties injection from Azure Keyvault using spring boot and spring-cloud-azure-starter-keyvault-secrets

I would like to replace spring.datasource.password with a password from azure keyvault. I have a project based on spring boot: <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.3.1</version> I am using dependencies : <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>com.azure</groupId> <artifactId>azure-identity</artifactId> <version>1.13.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.azure.spring</groupId>…

VIEW QUESTION
Back To Top
Search