skip to Main Content

I am using MongoDB as a database in Spring Boot. But I am getting a problem while adding the data

These are my Entities:- This is my rider Rider entity package com.app.enities; import lombok.*; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.util.List; @Document(collection = "Rider") @Getter @Setter @AllArgsConstructor @NoArgsConstructor @ToString(callSuper = true) public class Rider { @Id private String id; private String…

VIEW QUESTION

How to make the user sessions not expire in Redis in Spring Boot applicaion

I am new to spring-data-redis. I have integrated it with a spring-boot application. As part of this, I have added a few configs as follows: spring.session.store-type=redis spring.session.redis.namespace=tc server.servlet.session.timeout=-1 server.servlet.session.cookie.name=UISESSION server.servlet.session.cookie.http-only=true I don't want the user sessions to persist forever in…

VIEW QUESTION

Mongodb – Spring MongoTemplate bulk upserts are not performed onto the collection

I've got a MongoDB collection with the following document structure: @Data @NoArgsConstructor @AllArgsConstructor @Builder(toBuilder = true) @Document public class CustomerRouteManagementReportDocument implements TransactionDocument { @Id private String id; @Indexed(unique = true) private String customerId; // ... other properties private List<RouteHistoryEvent> routeHistoryEvents;…

VIEW QUESTION

Debian – Spring Boot App not available on its path when deployed on standalone Tomcat

I have a Spring Boot webapp developed and tested with the Netbeans internal Tomcat server. I have setup the Application as a SpringBootServletInitializer public class ServletInitializer extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { return application.sources(Testspringboot2Application.class); } } @SpringBootApplication…

VIEW QUESTION
Back To Top
Search