Category "spring"

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

How to handle 2 OUT user-defined custom data types from Java Spring Data JPA @NamedStoredProcedureQuery defined on @Entity class?

UPDATE: I have tried implementing the SQLData interface for my Financial.class and PersonalInfo.class Java POJOs defined on my @NamedStoredProcedureQuery for th

How to check spring boot post API if it is available in the database

**Controller** package com.example.curd.curdtesting.controller; import com.example.curd.curdtesting.entity.Book; import com.example.curd.curdtesting.service.Bo

Vite - change static assets' directoy

I had build an app using create-react-app. And our server is set up as such that all files except index.html are in a folder named static. <!DOCTYPE html>

Axios API request from React Native frontend to local spring backend service not working

I develop a React Native mobile app and for the backend I want to use Java Spring. Now I have a standalone backend server running locally on port 8080 and my re

Instagram Oauth2 java.lang.IllegalArgumentException: authorizationGrantType cannot be null

I try to create Oath2 registration. But I get this error: Caused by: java.lang.IllegalArgumentException: authorizationGrantType cannot be null at org.spring

what is the bset IDE and course or book for jakartaEE and spring?

I am new to spring5 and I saw that in order to learn spring well, first, it is better to learn a little JEE and become more familiar with its basics, so I have

ASP.NET and Spring - Singleton or Scoped/Prototype

Im really confused, Daily I work with java and spring and in Spring-community it is almost obvious that Repositorium/DAO and Services are Singletons (which is d

Spring: java: package javax.validation.constraints does not exist

I already have this dependency in my pom.xml file <dependency> <groupId>org.springframework.boot</groupId> <artifactId>sprin

How to get requests path with unresolved variables in Spring WebFlux

I'm trying to get the request's path with unresolved path variables in a WebFilter. I know in SpringBoot Servlet version it is possible to do this by getting re

Spring Cloud Gateway - custom 404 error message when route is not found

I have a basic Spring Cloud Gateway app that is configured with YAML: server: port: 8080 logging: level: reactor: netty: INFO org: spri

Spring Data JPA (Postgres) - Insert into One table, reading the foreign key from a table that contains static data

I am currently working with Spring Data JPA, specifically Postgres. Our database is highly Normalized. In some scenarios we have some tables that contains stati

How to convert a JSON request into a list of specific format n spring?

I have a request JSON list like this: [ { Id: 0, values: [a, b, c, d] }, { Id: 1, values: [1, 2, 3, 4] }, . . . ] How do I convert this to a lis

Apache CXF JaxWsProxyFactoryBean SSL Configuration call to external https fails

I have a spring microservice docker deployed. I use JaxWsProxyFactoryBean to call an external server (soap/wsdl) and all goes well using http://externalServer:

java.lang.ClassNotFoundException: javax.sql.rowset.RowSetProvider

I'm running a Gradle project in Docker and when I try to hit an endpoint through Postman I receive the following error. When I run it locally through Gradle it

How to modify an existing PDF file contents in Java

I am using a Spring Boot application and I need to dynamically populate the blanks in an existing PDF using the values from the database. I have attached the im

How to access file in Spring Boot Cloud Config from another branch

When connecting to a git-configured spring boot cloud config server, how do you reference a different branch? Currently I can access a subfolder's data by doing

Jpa reader Spring Batch

I would like to know, if this way is recommended to implement the reader spring batch with jpa or is it better to look for another solution and if this way is n