Category "spring-boot"

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

How to send response back from server to client using Apache camel netty , spring boot

I have two modules as client and server. I am currently sending echo messages from client to server using netty server routes from(netty:tcp://0.0.0.0:21005). N

How to add customer header to Request?

I'm caught in a situation where I need to manually add a header(Authorization) to the request. The catch is that I only need to add that header to requests comi

How to update the password in Spring SecurityContext?

Using Spring Boot 2.6.4. Here is my SecurityConfig class: @Configuration public class SecurityConfig extends WebSecurityConfigurerAdapter { @Autowired Secur

Upgrading spring boot to 2.5.12

I am upgrading spring boot version to 2.5.12 from 2.3.10.RELEASE because of the vulnerability issues. But I am getting below error while starting the applicatio

Spring boot 2.1.3.RLEASE to 2.6.6 upgrade and un-supported http method behaviour

I was using spring 2.1.3.RELEASE before. Used to handle all un-supported HTTP methods and endpoints with an custom error like below and it worked; /** * Handle

How to disable Spring Cloud Kubernetes in a Maven build

Running Spring Boot 2.6.6 and Spring Cloud 2021.0.1 I'm attempting to migrate an existing service to Kubernetes so I added a dependency on spring-cloud-starter-

Unable to fetch secrets using Instance Profile from databricks for a spring boot application

I am using spring-cloud-starter-aws-secrets-manager-config 2.3.3 for a spring boot application which works perfectly in my local pointing to stage environment

Why method print() of my class CustomDateFormatter using with my custom spring annotation is never called?

I have a issue with creation of custom annotation in springboot application: I've got a form with few fields with datepicker. Dates must have to be parsed in 2

Constructor parameter in configuration class required a bean of type 'StratusAuthenticationEntryPoint' that could not be found

Parameter 0 of constructor in ResourceServerConfiguration required a bean of type 'StratusAuthenticationEntryPoint' that could not be found. I am using spring b

Spring boot WebSecurityConfigurerAdapter basic authentication user password validation issue

I'm writing a simple REST API using Spring Boot and I want to enable basic authentication. Therefore I have used the WebSecurityConfigurerAdapter as shown below

How to inlcude more attributes in OAuth2User retruned from Azure Active Directory (AAD) using Spring Boot Starter oAuth2 Client

I am using spring-boot-starter-oauth2-client, spring-cloud-azure-starter-active-directory (spring-cloud-azure-dependencies 4.0.0) to add oauth2 authentication a

How to get Swagger UI in SpringBoot (404 error)

I'm trying to add Swagger UI to my REST Api but I can't find swagger ui path or there is a problem with it. Because when I check the paths where swagger ui must

Listing AWS S3 bucket content from Springboot With Apache Camel

I have a sprintboot project running v2.5.4 which works fine. I have access to S3 and im able to list the content of a bucket i have created. So i wanted to expe

Spring Batch cannot Load the JobBuilderFactory in my integration test

I have a configuration that successfully works and loads cell line data and publishes to various recipients in a cell line topic. It works fine, but when I try

Under which condition should I choose the JDK provider and its pros and cons? [closed]

May I know what are the JDK provider choices for Spring Boot if I am using Kotlin with Java 8 along with AWS EC2? I saw many providers out the