You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using spring-data-mongodb reactive in our spring application. when tried to use spring-cache-mongodb with it, fails:
021-03-06 22:15:39.482 DEBUG 59911 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : Application failed to start due to an exception
java.lang.NoSuchMethodError: 'com.mongodb.DBCollection org.springframework.data.mongodb.core.MongoTemplate.getCollection(java.lang.String)'
at com.arhs.spring.cache.mongo.MongoCache.creationCollection(MongoCache.java:119) ~[spring-cache-mongodb-1.0.1.jar:1.0.1]
at com.arhs.spring.cache.mongo.MongoCache.initialize(MongoCache.java:299) ~[spring-cache-mongodb-1.0.1.jar:1.0.1]
at com.arhs.spring.cache.mongo.MongoCache.<init>(MongoCache.java:115) ~[spring-cache-mongodb-1.0.1.jar:1.0.1]
at com.arhs.spring.cache.mongo.MongoCacheBuilder.build(MongoCacheBuilder.java:82) ~[spring-cache-mongodb-1.0.1.jar:1.0.1]
at com.arhs.spring.cache.mongo.MongoCacheManager.loadCaches(MongoCacheManager.java:56) ~[spring-cache-mongodb-1.0.1.jar:1.0.1]
We are using spring-data-mongodb reactive in our spring application. when tried to use
spring-cache-mongodb
with it, fails:These are the dependencies
I have a hunch that it is confusing with the first 2 dependecies.
The text was updated successfully, but these errors were encountered: