Category "spring-boot"

Liquibase with Cassandra tableExists always comes back as false

I am using Liquibase for Cassandra and using the SimbaCassandraJDBC42 driver. I am using the tableExists in a precondition as shown <?xml version="1.0" encod

getting springboot to support groovy 4.0 (apache packaging) | needed 3.0.0-M2 and more

spring-boot > 2.3.1 will grab groovy-bom from codehaus instead of org.apache.groovy packaging, even if you declare org.apache.groovy dependendices I found th

How to convert nested objects into nested DTOs using ModelMapper?

I am facing issue when I am trying to use ModelMapper to convert nested java objects into nested DTO's. Getting null for child dto's in parent dto object. Follo

Log4j2 vulnerability and Lombok annotation @log4j2

We are using spring boot 2.1.5 and starter parent as pom dependency. Spring boot is using default logback for logging and we haven't explicitly switched to Log4

Compare two Lists and get the difference [duplicate]

I have two Lists which I get - one from xlsx file, the second one - by select from database @Component public class ReadExcelDemo implements C

blank/white page error in react js app ( stopped working in chrome and edge all of a sudden)

I have a react app which is in production for few years now, everything was working just fine but all of a sudden a it has stopped working (only a particular fu

How to get Total hits for an ES query after setting from and size field

searchSourceBuilder.query(query).sort(sb).from(fromField).size(sizeField); searchRequest.indices(elasticsearchUserIndex).source(searchSourceBuilder); SearchResp

How to configure maxDegreeOfParallelism for cosmosdb in Springboot?

I want to configure the CosmosQueryRequestOptions.maxDegreeOfParallelism while using the CosmosRepository. I didn't find any documentation around it. This blog

Can Spring Boot detect when the Google PubSub connection is down?

I've been googling and can't seem to find an answer to this question: Can a Spring Boot app get a lifecycle notification if its underlying broker connection (ei

Spring boot image container running in minikube not giving proper response

I am using a minikube from powershell (minikube start) I can do all the things successfully like creating the image of my spring boot rest API. Creating the con

Moving to the Spring Boot. Migration of logic from the old main class

I am very new to Spring Boot and development, so, I am stuck with a problem. I have an old project that needs to be migrated to Spring Boot. The original main m

IllegalAccessError: ClassA and class B are in unnamed module of loader 'app'

I have a spring @Configuration bean which initializes a class A. This class A, in its constructor, calls another static method in class B. When spring initializ

LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Deploy Spring-Boot Application on Wildfly

I am trying to deploy a Spring-Boot Vaadin java application on a Wildfly server with a .war. Unfortunately I always get this error message: 2022-04-28 00:23:18,

Java springboot application I have to create in which I have to send requests to multiple endpoint with their schedule time at once

Explanation - I have IP address/port and thier time frequency saved in DB. I have to create service or job that will run on scheduled time. It will read endpoin

How to import a bean which comes from a configuration bean conditional on another class?

I'm using a 3rd party dependency in my Spring Boot project (version 2.6.3) which has the following classes: @ConditionalOnProperty(prefix = "spring.cloud.vault"

How to get Count of OneToMany field in JPA Enity?

How can we get the count of OneToMany field of JPA entity as querying count for each parent entity while fetching as a list is costly and there is no way in JPA

Common object in two objects java

I am implementing one api and I have the following request bodies for 2 different endpoints: endpoint1: { "requests": [ { "id": "123" } ] }

Spring boot mongodb QuerydslPredicateExecutor ClassNotFoundException: com.querydsl.mongodb.document.MongodbDocumentSerializer

I'm trying to use QuerydslPredicateExecutor. Here is my repository interface: public interface ProductsRepository extends MongoRepository<Product, String

Inconsistency between postgres and hibernate

Inconsistency between hibernate and postres. Consider we have table student having 2 columns id(Primary Key) and name. Perform the following concurrent query on

Spring Boot gradle build - invalid source release: 11

I am trying to build my spring boot project with this command: ./gradlew build But it continuously throws this error: 'Execution failed for task ':compileJava'