Category "spring"

Spring Web Flow: add view state information to URL

I'm using spring web flow 2.5.1.RELEASE. I need to show info about the current view state in the URL (I need it for customer journey tracking with google analy

How to use Autowired in BeforeStep cucumber step definition

I'm getting NullPointerException when I use @Autowired in the @BeforeStep cucumber method in my step definition. What I'm doing wrong here? Please find my code

Unable to logout using spring security OidcClientInitiatedLogoutSuccessHandler from ADFS server

When I do logout, It should redirect to end_session_endpoint of ADFS which is "https://fed04.fcagroup.com/adfs/oauth2/logout" however its redirecting back to ho

hasAnyRole() not working with Spring Security 5.4.6

I have changed my spring framework version from 4.1.4.RELEASE to 5.3.6 and spring security version from 3.2.5.RELEASE to 5.4.6. I'm facing problem when using &l

GraphQL + Springboot + Http Headers

I'm using these graphql dependencies: "com.graphql-java-kickstart:graphql-spring-boot-starter:12.0.0", "com.graphql-java-kickstart:graphql-java-tools:12

Unable to configure Spring Cloud Consul for specific profiles

I'm trying to configure spring cloud consul for a specific profile but when I try to run the application I get the following error: ***************************

Mock a complex api call

I have some problemi understanding spring @MockBean in complex api call: serviceCommunication.callAPI(HttpMethod.POST, Servi

How to call a stored procedure in Spring Boot?

A query for a stored procedure for multiple delete yield an error message shown way below. CREATE OR REPLACE PROCEDURE delete_dim_page(_page_id bigint) LANGUAG

RabbitMQ doesn't show me the queues and exchange created in my Spring consumer and publisher apps

I am trying to create a publisher and consumer apps in spring using RabbitMQ. Every thing works fine and when the publisher sends a message, the consumer receiv

RabbitMQ doesn't show me the queues and exchange created in my Spring consumer and publisher apps

I am trying to create a publisher and consumer apps in spring using RabbitMQ. Every thing works fine and when the publisher sends a message, the consumer receiv

Camunda: Receive multiple, different messages at once

I am currently developing a kinda complex workflow with camunda. The goal of this workflow is to orchestrate the execution of different external business proces

Why do not work @Validated in spring boot 2.6.2

I have in my pom file: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-validati

How to stop listening in a Spring Kafka consumer?

I use Spring for Apache Kafka. I'd like to stop listening to my topic and wait to escape OOM. How can I do it?

Mapstruct - How to convert a DTO String parameter to an Entity object?

I'm new to Mapstruct and I'm trying to understand it properly. What I want to achieve is converting from a DTO String parameter (carModel) to his Entity, retrie

Is it possible to provide multiple roles in aws credentials provider using STS in spring boot?

Currently I have three roles, wherein each has the separate SQS access. I am connecting to AWS by using the roles. For connecting with single role, this code is

Derive tenant id for signed in user in OAuth2 based multi-tenant Spring Boot application using Spring Security

I am working on a Spring Boot B2B application, where I would like to onboard a considerable number of tenants. Each of the tenants has its own authentication pr

AMQP Closing all channels from connection when docker run on port 5672

I have run Rabbitmq as a docker compose and it work well with port 15672 on browser, but 5672 not working. docker-compose rabbitmq: image: 'rabbitmq:3-manag

Generate CSV from entity based on columns reordering

How to achieve this concept based on generating CSV in case of: Ignoring field that am not interested in (Could be obtain in OpenCSV based on MappingStrategy) O

Spring batch - conditional step flow for Chunk model

I have two step where, step 2 should be skipped if the step 1 processor doesn't returned any item after filtration. I see ItemListenerSupport can be extended an

Global exception handling in spring webflux during tests

I'm developing a service with spring webflux. I implemented exception handling using @ControllerAdvice. It works pretty well, but when I run integration tests i