Relative Content

Tag Archive for mongodbspring-bootspring-data-mongodbgridfs

Database switching is not working in GridFsTemplate in spring-data-mongodb-4.2.5

I was trying to have switch between multiple databases at runtime by GridFsTemplate seems to take the database name only once and using it by default in other threads
my spring boot version is 3.2.5 and my spring-data-mongodb-4.2.5
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>4.2.5</version> </dependency>
this is happening after upgrading to springboot 3.2.5 and java 17

Database switching is not working in GridFsTemplate in spring-data-mongodb-4.2.5

I was trying to have switch between multiple databases at runtime by GridFsTemplate seems to take the database name only once and using it by default in other threads
my spring boot version is 3.2.5 and my spring-data-mongodb-4.2.5
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>4.2.5</version> </dependency>
this is happening after upgrading to springboot 3.2.5 and java 17

Database switching is not working in GridFsTemplate in spring-data-mongodb-4.2.5

I was trying to have switch between multiple databases at runtime by GridFsTemplate seems to take the database name only once and using it by default in other threads
my spring boot version is 3.2.5 and my spring-data-mongodb-4.2.5
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-mongodb</artifactId> <version>4.2.5</version> </dependency>
this is happening after upgrading to springboot 3.2.5 and java 17