Category "spring-boot"

Spring Webflux - "scanAvailable": true

I'm using a RouterFunction to define endpoints in my Spring Boot application. My service returns a Mono<Object> and I want to return the result of this wh

Problem defining same column twice using @Column in Spring Boots

I am facing a problem when I define the same column, second time. In the Document.class that column have defined already and as soon as I define @Column(name =

Java web application when hosted on server, cant find resources under [/] "The requested resource [/] is not available"

I made spring boot web app that works perfectly when I run it in Localhost, but when I exported it from IntelliJ to .war ( via Maven/package ) and upload it to

Spring Boot v2.6.7 and Hashicoprt vault Integration issue, unable to fetch the DB details

I am using Spring Boot v2.6.7 and trying to integrate Spring Cloud Config server, Hashicprp Vault within microservices. I went through links like: https://mediu

Spring boot Circuit breaker - Resilience4 - Fallback method is getting triggered on 1st failure call itself

I have created a simple circuit breaker pattern using resilence4. The problem I am facing is, fallback method is getting called on 1st hit only. I am expecting

Migrate HandlerInterceptor to Spring boot 2.6

I have this old code implemented for Spring 2.4 public class Interceptor extends HandlerInterceptorAdapter { @Override public boolean preHandle(HttpServlet

Automatically register users in resource server

I'm trying to configure spring security with oauth2, however I am new to this topic and ran into a problem. I have a spring backend and an angular frontend. I u

How to use log4j.xml for spring boot + log4j2 dependency

I have a log4j.xml with a customized appender like: <appender name="console" class="com.example.MyAppender"> <layout class="org.apache.log4

Error With ConfigurationPropertiesBinder java spring when trying to start application context

I have a simple application it fails to load with the below error APPLICATION FAILED TO START Description: An attempt was made to call a method that does not ex

How to iterate through all instances of an entity in Spring data JPA

I have an entity called packet, I want to update an attribute in all instances of that entity. The attribute I want to update is the price of the packet by a gi

Spring cloud stream merge responses from two different functions

I'm trying to use spring cloud stream to solve the following problem: I have a class that calls two separated functions (Function A and B), both of those funct

jsp page shows 404

Got a simple project setup, my goal is to load a jsp file: I got my Controller with a RequestMapping for a jsp file. package com.example.registrationFrom.contro

Sprint boot database polling or listen database updates

I have 2 Spring Boot applications let's say named App1 and App2. There is a table in oracle DB with status column. when App1 runs a scheduler, it will update t

Java Spring Webflux - IP in access log

Small question regarding how to interpret the IP of an access log of a Spring WebFlux application please. I have a very simple Spring WebFlux Application, with

Can Spring Batch be used to fetch response from REST API

I have a Spring boot REST App which Encrypts the data and posts on to another REST application (Vault) which encrypts and stores the sensitive data and return a

Spring Boot non-required requestParams default to null instead of empty string

I'm using Spring Boot for a search tool and I'm having an issue while passing the values from the front-end to the back-end. So, I have a select field that I'm

NoClassDefFoundError on MongoCustomConversions while upgrading springboot

I am getting the following error java.lang.NoClassDefFoundError: Could not initialize class org.springframework.data.mongodb.core.convert.MongoCustomConversion

Gradle cannot find Spring Boot 3.0.0-M1

I'm not sure how to debug this or what is wrong at all. I am trying to run this project: https://github.com/spring-projects/spring-security-samples/tree/main/se

Populate a drop down with a list using Thymeleaf and Spring Boot

I'm trying to add an HTML select with data from a Database using Spring Boot and Thymeleaf. I can't get it what I'm doing wrong. This is the Code that is connec

No converter found capable of converting from type [java.math.BigInteger] to Entity

I'm trying to get a list of transactions from database and this is the error I'm facing. "trace": "org.springframework.core.convert.ConversionFailedException: