Category "spring-boot"

How to handle "org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error" in Spring?

I'm adding an API to an existing Spring Boot project using @RestController. My Spring Boot experience is: This is my first time using it. The RestController wor

AWS XRay wrong service map when using OpenFeign with AppMesh and AWS Service Discovery

I'm testing interservice communication with Spring Boot Rest services deployed on AWS with AppMesh and Service Discovery enabled. To be able to send messages fr

spire.pdf in a docker container

I create an application that handle pdf and convert them to pdfa3 and also convert the document onto facturX. I developped my application using Springboot and i

Consider defining a bean of type 'org.springframework.security.oauth2.client.registration.ReactiveClientRegistrationRepository' in your configuration

I am using spring oAuthClient version 5.2.4.RELEASE By following the document link of spring security https://docs.spring.io/spring-security/site/docs/current

Vaadin 23 Flow - Spring Boot - Live Reload not working

I recently updated my Vaadin Flow Project to the newest Version 23.0.1. It all did great, but the LiveReload (detecting Java-FileChanges) doesnt work at all (It

Override the handleNoHandlerFoundException

I want override the Spring Boot default result when calling a not-existing route: { "timestamp": "2022-03-20T17:01:07.453+00:00", "status": 404, "er

Spring Boot response has already been committed exception for request to resources

I'm using Spring Boot (v1.2.4) deployed on WildFly 8.2 server. On the application I'm using font awesome v4.3. I get the "response already committed exception"

When does the hibernate session gets closed

I have created the following entities. @Entity public class Student { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id;

Getting 404 error in spring boot even though method is logging statements

My app uses Angular on the frontend and Spring Boot (w basic authentication & Spring security) on the backend. I'm using a proxy for api requests to my back

Authorization Header not getting displayed in CURL springdoc-openapi-ui

I am using the springdoc-openapi-ui. I have configured the global headers named Authorization. When I execute the API Authorization is not showing in the CURL o

Java NullPointer Custom Validator javax.validation.ConstraintValidator

I have the following Validator that I use to validate an Update Request. @Component public class UpdateDateValidator implements ConstraintValidator<ValidateD

InvalidDefinitionException while using JsonCreator with JsonProperty.Access.READ_ONLY

I'm getting InvalidDefinitionException when trying to use @JsonCreator along with @JsonProperty(value = "version", access = JsonProperty.Access.READ_ONLY) This

The bean 'exampleService.FeignClientSpecification' could not be registered. Bean already defined and overriding is disabled

My feign client class is as below along with the Application class. @FeignClient(name = "ExampleService", configuration = FeignClientConfig.class, url = "http:

cookie not set in the axios request header

I am having sprin boot application as my back end and vue js in the front end Both are running in my localhost but with different ports I am using axios to make

Can't Autowire @Repository annotated interface in Spring Boot

I'm developing a spring boot application and I'm running into an issue here. I'm trying to inject a @Repository annotated interface and it doesn't seem to work

MapStruct - Cannot find implementation

Using latest Springboot and MapStruct versions and building with Maven, I am trying to implement the "Start Here" example given in the official MapStruct site

Access Headers at any time when implementing org.springframework.validation.Validator

I have a Spring Boot Application where I need to perform some validation over the request's fields based on a header value. So like any other Spring Boot App m

MapStruct implementation is not working in Spring Boot Web Application

I am a newbie to Spring Boot and MapStruct Tool. Earlier, A Project(written by other team using these technologies) is not starting up. Then, I had made some

How to read Spring Boot application log files into Splunk? [closed]

I am looking to send log data from the application to Splunk. I came to know that there is nothing to do with spring, it's just Splunk needs s

I am trying to connect my spring boot application with Azure service bus. Should I be using JMS or azure spring cloud stream binder?

I found these two docs in Spring Azure Documentation https://docs.microsoft.com/en-us/azure/developer/java/spring-framework/configure-spring-cloud-stream-binder