Open Spartaques opened 3 weeks ago
Hello @Spartaques , we'll take a look and will get back to you as soon as possible
Hello @Spartaques , we are a bit busy with some clients, would you be happy realising a PR for this and we'll review it asap?
Cheers
With spring boot 3.3.2 spring-data-mongo version is 4.x.x.
You are using in your pom mongock driver version 3.
Change the dependency to v4 driver and give a try.
<dependency>
<groupId>io.mongock</groupId>
<artifactId>mongodb-springdata-v4-driver</artifactId>
</dependency>
Description
[Description of the issue] Mongock is not working with java spring boot 3.3.2 and
PRIORITY
[CRITICAL, NORMAL or MINOR]
Version and environment
Mongock
Environment
Steps to Reproduce
Here is my code
package com.platform8.wallet.config;
import io.mongock.driver.api.driver.ConnectionDriver; import io.mongock.runner.springboot.MongockSpringboot; import io.mongock.runner.springboot.base.MongockInitializingBeanRunner; import org.springframework.context.ApplicationContext; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import org.springframework.data.mongodb.core.MongoTemplate;
here is error stack trace APPLICATION FAILED TO START
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
The following method did not exist:
The calling method's class, io.mongock.driver.mongodb.springdata.v3.SpringDataMongoV3DriverBase, was loaded from the following location:
The called method's class, org.springframework.data.mongodb.core.MongoTemplate, is available from the following locations:
The called method's class hierarchy was loaded from the following locations:
Action:
Correct the classpath of your application so that it contains compatible versions of the classes io.mongock.driver.mongodb.springdata.v3.SpringDataMongoV3DriverBase and org.springframework.data.mongodb.core.MongoTemplate