Category "spring"

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

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: