Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
210 views

We updated an Spring Boot project from Spring Boot 3.5.8 to 4.0.2. The developed application connects to a MongoDB server using the org.mongodb:mongodb-jdbc:3.0.5 driver (dependency included in the ...
stefan23's user avatar
0 votes
0 answers
51 views

I have a spring boot application deployed on ECS running on 2 tasks. It is fetching username and password from AWS Secrets Manager using AWS SDK and connecting to AWS DocumentDB using spring data ...
saichand vemuri's user avatar
0 votes
1 answer
159 views

I am trying to ditch mongodb and use ferretdb as a drop in replacement. Now I have tests that were working with testcontainers as testcontainers has first class support for mongodb. I have changed the ...
user3465651's user avatar
0 votes
0 answers
23 views

When I try to do the following I get an error. Would like to know if it's possible to access Java system properties or alternatively environment variables exclusively in the @Document annotation to ...
awgtek's user avatar
  • 1,909
0 votes
1 answer
184 views

I am trying to serialize a model with a LocalDate into a BsonDateTime using Spring Data Mongo. This MongoDB guide for Kotlin usage says that, with the @Serializable and @Contextual annotations, ...
geppettodivacin's user avatar
0 votes
1 answer
61 views

I have a Base Entity class which all my Spring Data MongoDB classes extend, I want to have a few basic fields (check below) which need to be auto-set/auto-updated, what's the cleanest way to achieve ...
SRI HARSHA S V S's user avatar
1 vote
1 answer
105 views

I use spring-data-mongodb in my project. I have some code like that: @Repository public interface NameRepository extends MongoRepository<Name, String> { List<Name> findByStatus(String ...
victorli's user avatar
0 votes
0 answers
97 views

I have spring app which uses mongoRepository. I want to have an integration to test my repository by using @DataMongoTest. For some reason my test tries to connect localhost for mongo and gets timeout....
user1474111's user avatar
  • 1,536
2 votes
1 answer
129 views

I get the following error when using a MongoDB transaction inside @KafkaListener method. The repository performs an unordered bulk operation (that may fail, but I'm intrested in knowing which ...
Riccardo's user avatar
-1 votes
1 answer
63 views

I’m encountering some issues when querying nested MongoDB documents using spring-boot-starter-data-mongodb. After checking, I can confirm that the valid documents are present in MongoDB. Here's an ...
user3187960's user avatar
1 vote
1 answer
446 views

I'm attempting to write ITs for a simple reactive service, but the test fails when attempt to obtain the test container (MongoDB Atlas Local) connection. The error: Caused by: org.springframework....
John Manko's user avatar
  • 1,982
0 votes
1 answer
54 views

Mongo document has a field createdOn which stores ISODate i.e. java.util.Date in mongo document I am trying to get count on date range fields. When I give date range from and to from restclient I am ...
JPG's user avatar
  • 1,271
1 vote
1 answer
134 views

I know two separate APIs in MongoTemplate, if you want to perform an .aggregate: By invoking directly functions in MongoTemplate, like MongoTemplate.aggregate() By using an intermediate getCollection(...
Andrei's user avatar
  • 1,447
0 votes
1 answer
91 views

In a Spring Boot app which uses MongoDB, I have a repository that extends MongoRepository and adds custom methods. I need to write a method that updates the nested field balance.available incrementing ...
Gregorio Maclen's user avatar
0 votes
1 answer
131 views

I'm relying on (spring-data-mongodb) AggregationUpdate with ConditionalOperators.switchCases in order to update multiple documents in one shot. This work well for .set, .unset, and conditional ...
boly38's user avatar
  • 2,015

15 30 50 per page
1
2 3 4 5
221