skip to Main Content

Mysql – Return value of sqlExceptionHelper() is null

I was trying my hands on running my Spring Boot application with MySQL database on Docker Desktop via docker compose. I am getting this error upon running docker compose up . app-1 | java.lang.NullPointerException: Cannot invoke "org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(java.sql.SQLException, String)" because the…

VIEW QUESTION

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