Category "spring"

Send a path containing slashes in Kotlin Spring mappings

Having trouble dealing with slashes in controller mappings in Kotlin Spring. My client application sends an absolute path ("C:/User/Documents/FolderX"), and sho

Error creating bean with name 'entityManagerFactory - nested exception is java.lang.NullPointerException

I'm only learning Java and Spring and after several projects/tutorials went well I'm stuck with this error on a new project: org.springframework.beans.factory.

Spring Boot always redirects to login page

I have a problem about spring boot. I'm beginner and need to help. I'm created a project via initializr. And my pom xml; <?xml version="1.0" encoding="UTF-8"

Mongo template left join between two queries

In a spring project, I'm using reactive mongodb with mongo template to return a result of type Report class. var res1 = (Flux<Report>) template.find(q

Spring Webflux - Database connection metrics

Small question regarding database connection metrics for Spring Webflux (2.6+) web application please. For the SpringBoot (non Webflux) apps, connecting to JDBC

Refresh the datasource on password rotation in SpringBoot Application

Can someone please guide me, how I can refresh the datasource whenever the password is rotated for the database. Basically I don't want any manual step to refre

Multiple list of Data comming in API when using ManyToOne Relationship

CarMake.java @Getter @Setter @EqualsAndHashCode @NoArgsConstructor @Entity public class CarMake { @SequenceGenerator( name = "car_make_sequence"

What is the best way to handle @SqsListener processing failure in Spring Boot?

We have implemented sqslistner as the documentation suggests, the best way to receive AWS SQS message Cloud Spring Doc. There are two ways for receiving SQS me

What is the best way to do async side effect in Reactor?

Let's assume I have a main chain with some processing and I want to call billing service on each item processed and then return the results of the processing fu

Make R2DBC use the same connection for all interactions with the database in a @Transactional method (Java, Sprint)

Motivation I have a service which I want to make @Transactional. My service is storing complex data in multiple tables, there is a referential integrity between

Many to many relationship doesn't add new Entity into the table

I have two entities Book and BookTag. They are connect by many to many relationship. @Getter @Setter @Entity @NoArgsConstructor @AllArgsConstructor @Builder(toB

Unable to connect IBMi machine with Spring Data & JPA

Trying connect IBMi machine by using Spring Data & JPA, but it's generating the error: org.springframework.beans.factory.BeanCreationException: Error creati

make repository mutually exclusive in springboot

Is there a way to make a repository mutually exclusive i.e two concurrent values not update the same document in Springboot. My code structure is. //func(versi

Upgrading Sencha ExtJs from 4.2.2 to 6.0.0

My application's front-end was build long back on ExtJS version 4.2.2 ,so Sencha Cmd tool was not used at that time , I am new to ExtJS and wants to know what a

How to fire liquibase rollback script from spring application

I am using spring with liquibase to update my database. Since know I have not need to user rollback functonality, but the times come where I would like to make

How to update a JSON array in a Java

I have a JSON file name abc.json Once I opened this file there is data like in square brackets. [{ "1" : "xxx", "20" : "ppp", "25" : "hhh" }] Here in this keys

Make response part of body instead of header in SOAP response

I have requirements where I have to add response details in Body tag instead of Header. For now details are added in Header tag of soap response. @XmlType publi

How to configure Spring Boot entity for GeoJSON?

I want to save a GeoJSON to database by using Spring Boot and JPA Example JSON object: { "type": "FeatureCollection", "features": [ { "type":

How to design a Spring REST server with a parallel business logic function

I'm currently building server software in Java. I already have a running backend, which is build with Spring Boot. It has an REST interface to read and write da

How to set a custom principal object during or after authentication?

I've changed the way a user is authenticated in my backend. From now on I am receiving JWT tokens from Firebase which are then validated on my Spring Boot serve