Category "spring-boot"

Request Body Missing in Spring while updating using PATCH API in react js

Spring shows - Resolved [org.springframework.http.converter.HttpMessageNotReadableException: Required request body is missing: public com.cg.bookstore.entities.

How to select role from Oracle DB in java spring boot?

I'm trying to select user role from Oracle database using id of user in spring boot framework but it not working? I'm trying to select user role from Oracle

SpringBoot Sleuth/Zipkin Tracing: Issue adding a client, for Zipkin Server

Small question regarding a Java 11 + SpringBoot 2.6.7 web application, in the context of Zipkin please. I have a very simple micro services architecture SpringB

SpringBoot Sleuth/Zipkin Tracing: Issue adding a client, for Zipkin Server

Small question regarding a Java 11 + SpringBoot 2.6.7 web application, in the context of Zipkin please. I have a very simple micro services architecture SpringB

Call RestApi endpoint resource from EJB

I have been looking around for sample code how to call a Restful service written in Spring boot (deployed in different server/ip) from an EJB client. I couldn't

SpringBoot 2.x + Jubilee: Disk space metrics to Grafana

Small question regarding SpringBoot 2.6.x + Jubilee, and the new disk space metrics provided. Out of the box, the new metrics available with Spring 2.6 are: dis

ServerHttpSecurity authorizeExchange PermitAll Not Working

I've configured auth0 authentication with spring cloud API gateway, My basic setup is as follows, POST - /user/api/user/registration - PermitAll All Other API

Return DTOs in the controller

I have an Operation service that has a list function that returns a list of OperationDTO however when the controller calls this function the list returns null d

How do I properly catch and handle PoolInitializationException in Spring Boot Application?

I'm writing a Spring Boot 2.6.3 app with a HikariDataSource created programmatically (so I can control names, timeouts, etc.). The interface method is used by a

Spring Security OAuth 2 - Authorization Server update from 0.1.0 to 0.1.1 / 0.1.2 makes example projects not work

I want to use the new Spring Security Authorization Server to implement OAuth2 for my webservice. At https://www.baeldung.com/spring-security-oauth-auth-server

ClassNotFoundException: com.fasterxml.jackson.core.util.JacksonFeature in Spring boot, upgrading from Elasticsearch HLRC to Java API Client

I wanted to swap out the deprecated High Level Rest Client with the new Java API Client from Elasticsearch. Problem is, I'm not sure if my dependencies are conf

Spring cloud loadbalancer - Feign + SimpleDiscoveryClient with healthcheck/retry

I'm struggling to switch from Ribbon to Spring Cloud Loadbalancer after upgrading spring cloud versions. Setting up the SimpleDiscoveryClient with Feign was eas

What are the possibilities with Spring Authorization Server when using it for authentication (and authorization)?

I'm looking to find a tool that will do the authentication (and authorization) part of the project. For the project, I will be using spring boot and java 8. I w

Swagger OpenAPI UI sending 403 response status for POST, PUT and DELETE Requests

Issue : Get request for Swagger UI openAPI is working , whereas other method types giving 403 error. Dependency : <dependency> <groupId>org.

Send a path containing slashes in Kotlin Spring mappings

Having trouble dealing with slashes in controller mappings in Kotlin Spring. My client application sends an absolute path ("C:/User/Documents/FolderX"), and sho

querydsl cannot find symbol error in spring boot mongo

I'm trying to use @querydslpredicate and tried to add all the dependences and plugin for the same <dependency> <groupId>com.quer

How to provide completely custom JSON for example in Swagger?

I have Java endpoint which receives json-deserializable object. Unfortunately, Swagger is unable to auto-generate good example for it. Is it possible to provide

Error running springboot oauth2 application: java.security.PrivilegedActionException: null

I am new to spring security. I am trying to create a security application basing on the tutorial available in internet. pom.xml <parent> <g

What magic happens in kotlin

I have kotlin + spring boot app. I done some development in my feature branch committed and returned to dev branch, built app and just tried to start it in inte

Spring Boot always redirects to login page

I have a problem about spring boot. I'm beginner and need to help. I'm created a project via initializr. And my pom xml; <?xml version="1.0" encoding="UTF-8"