Category "spring"

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

Enable http actuator with disable default web server

I need create spring boot application as daemon with disabled default web server and with active server actuator by http. I need actuator only by http no jmx.

ERROR Failed to load resource: the server responded with a status of 403 () en angular

Errors I get ERRORES: Failed to load resource: the server responded with a status of 403 () login:1 Access to XMLHttpRequest at 'http://localhost:8080/l

What is the difference between @EJB of JEE and @Autowired of Spring?

What is the difference between @EJB of JEE and @Autowired of Spring Framework? Are those the same thing? And if not, which are the differencies? I have seen t

Error creating bean with name 'entityManagerFactory' caused by java.lang.IllegalStateException

In the code I do not even use entityManagerFactory. I extend JPARepository and for creating the tables I have entities annotated with @Entity (using javax.persi

How to lazy initialize spring-boot datasource?spring.data

I have a spring-boot application that defines a mysql DataSource: spring.datasource.url=... spring.datasource.username=... spring.datasource.password=... I r

Serialising order annotations for XML on Jackson does not work

I already googled this problem for almost a day and tried several fixes (including 4 or 5 from StackOverflow) but none of them worked. I have this POJO with ann

HttpServletRequest throws error when used within Aspect

I have a method which has an aspect. When I try to @Autowire HttpServletRequest, and use request.getHeader(something), I get this error - No thread-bound reque

How to do rescheduling in springboot

I have a spring boot application which contains a scheduler that picks up file from my local.I want the scheduler to be rescheduled to an hour after if my local

No qualifying bean of type 'javax.sql.DataSource' available

I am using spring mvc version 5. I am struggling in an autowire problem. I am following a spring security JDBC tutorial. Here is the AppConfiguration.class: