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

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

Redis – Qclass dose not generated(non-existent Qclass) witth Springboot3 + JDK17 + Gradle

spirngboot 3.3.1 + JDK17; Problem occurred during migration from Springboot 2.7 to 3.3 my build.gradle.kts enter image description hereplugins { id("java") id("org.springframework.boot") version "3.3.1" id("io.spring.dependency-management") version "1.1.5" } group = "back.ecommerce" version = "0.0.1-SNAPSHOT" java { sourceCompatibility = JavaVersion.VERSION_17 }…

VIEW QUESTION

404 Not Found Error on Spring Liquibase PostgreSQL app

I keep receiving 404 Not Found error for my MVC app. Here are my code: application.properties spring.datasource.url=jdbc:postgresql://localhost:5432/demo1 spring.datasource.username=demo1 spring.datasource.password=demo1 spring.datasource.driver-class-name=org.postgresql.Driver spring.jpa.generate-ddl=true spring.jpa.show-sql=true server.port=5000 ## Hibernate Properties # The SQL dialect makes Hibernate generate better SQL for the chosen database spring.jpa.properties.hibernate.dialect…

VIEW QUESTION
Back To Top
Search