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
Back To Top
Search