Category "spring-boot"

rabbitMQ sender with node-red

I am trying to connect node-red with rabbitMQ. The program will recive a text with the diet that the AI chose for each day. I made the rabbitMQ Configure java f

Exception Handling for async WebClient request

Recently I have been working with WebClient. I am creating both a sync request and an async request. In a sync request, I am able to catch WebClientResponseExce

Problem with @ModelAttribute while sending POST method with multipart/form-data

I'm experiencing trouble with multipart data for a reason I don't understand. I can't deserialize a Map. Below is the Controller: @Override @PostMapping

Spring drastically slows down score evaluation speed of Optaplanner solver

I have a following piece of code @SpringBootApplication public class ServerApplication { public static void main(String[] args) { SpringApplication.

JWT token does not start with Bearer

i cant find a way to add the Bearer and on the localhost:8080 I get this This application has no explicit mapping for /error, so you are seeing this as a fallb

File upload Angular 13 Spring boot rest Required request part 'file' is not present

I'm searching since days now for a solution and can not find any. I have a simple Spring Boot Rest application (Spring version 2.6.7) with an endpoint to upload

Adding dependencies to existing project via Spring CLI

Is there any way to add dependencies to existing spring project using Spring CLI (for instance via shell)? I tried to looked for on this website docs.spring.io.

How to pass parameter to a namedQuery from a camel route?

I have an application running camel on spring-boot. I want to pass a parameter retriesAllowed to a namedQuery from a camel route. namedQuery: @NamedQuery(name =

Is there a way to launch FXGL with SpringBoot?

I need to launch application with fxgl animations with springboot to utilize it's functionality. I dont really know how to do it. I tried putting initialization

Azure cosmos Db Criteria query with subdocuments - java spring boot

I'm new to azure cosmos db. i'm trying to read items from container in my spring boot application. i'm using cosmos template with criteria. lets say i have a do

Spring Boot/Spring Batch: Using and configuring two DataSource via app properties

I'm working with Spring Boot/Spring Batch, and need to provide two jdbc Data Sources. I can't find a way to automatically load the config parameters from my app

WebLogic - Spring Boot and RmiDataSource

I'm trying to deploy a Spring Boot app through Eclipse to a WebLogic server running localhost. It gives the following error: org.springframework.context.Applica

com.mongodb.MongoSocketOpenException: Exception opening socket with spring boot and mongodb cloud

Please suggest any solution for the below exception which is occuring while running my rest api while executing springboot application with mongodb cloud db. I

I have a Java Spring boot with Postgresql within docker-compose, org.postgresql.util.PSQLException: Connection to localhost:5432

Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is acce

Springboot upgrade from 1.x to 2.3.x MySQL performance issue

Trying to upgrade Springboot from 1.x/java8 to 2.3.x/java 11(AWS Corretto 11) MySQL: Aurora Connectionpool: tomcat datasource Issue: with the upgraded versio

Error creating bean with name 'securityConfig': Requested bean is currently in creation:

package ro.contabilitateexpert.AccountExpert.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotati

Do I have to use @Payload spring annotation to read Kafka message

Spring for Apache Kafka 2.8.4 under https://docs.spring.io/spring-kafka/reference/html shows some of the listener methods with @Payload annotation next to the m

Pre-controller token validation - Spring Interceptor?

In my Spring Boot application, I have several roles that are differentiated due to a token. Each one has a different token in the configuration file (.propertie

Getting 401 Unauthorized Even when the user is authenticated (Spring Security)

I am working on a simple project with 2 defined roles Admin and User,The admin role has authority to view users by thier usernames but when I login as an admin

When running Swing application with the Spring Framework, Unit tests do not work

I am developing a project through the spring framework. I am using JUnit to run unit tests, swing for the GUI. When I run the system, the GUI opens and I can ac