Category "spring-boot"

How to Customise example value of request body and execute it on swagger-ui with springdoc-open-api

I have created rest webservice using springboot and added springdoc-open-api for ducumentation of webservice, Now i have 2 question 1-how to add custom test val

Write the same data with different file names using single Item writer using Spring Batch

I have a Spring Batch FlatFileItemWriter which writes data to a specific location with a file name(let's say A.txt for example). Now I need the same file to be

Is it possible to require authentication on certain path, but not when certain request param is provided?

Controller: @GetMapping(path = "/new") public String method(@RequestParam(required = false) final String hash) { ... } Get request on /new without prov

Spring Boot /actuator returns 404 not found

I am using spring boot 2.1.4.RELEASE and currently trying to access http://localhost:8080/actuator but i am getting 404 not found. I am not sure what am i doing

how to link Spring boot Rest API unit test, integration test, owasp dependency check coverage to sonarqube

I have a new springboot rest api and i want unit test coverage of the api, integration test to reflect in sonarqube. I created a project from spring initalizer

spring-boot-starter-data-cassandra-reactive depends on CVE-2020-13946 native-protocol-1.5.0.jar

Small question regarding a SpringBoot project please. Currently with version 2.6.x, I am developing a very small web application storing data inside Cassandra.

Can i use two different tables for login in my spring boot application by spring security?

In my current project I have two separate entities. User :- TO authenticate users Customer :- To authenticate customers I'm confuse How will we manage log

How to fix "vault connection failed due to proxy issue" in spring-boot vault integration?

I want to connect to vault using a proxy. Here in my case, I only require proxy for vault connection, how can we specify the same? I tried with below configurat

How to return a marshalled JSON that has a nested property?

Fellow programmers from SO! I am building a simple Spring Boot example just to add a Client using a RESTful API. I have written this Controller: import org.spri

How to integrate a React webapp inside a spring boot Application with jar packaging

We have a react webapp and a spring boot application(built with maven) in development. The React app(on npm) and boot app are running separately but time has co

QueryDSL Predicate for use with JPARepository where field is a JSON String converted using an AttributeConverter to a List<Object>

I have a JPA Entity (Terminal) which uses an AttributeConverter to convert a Database String into a list of Objects (ProgrmRegistration). The converter just us

Are extra reflection configurations needed for custom Spring Boot starter libraries when using Spring Native?

I am in the process of building a set of shared libraries using custom Spring Boot starter auto configuration per guidance from https://docs.spring.io/spring-bo

Get list of keys in Complex JSON Object (Java 8)

I am dealing with a JSON that looks like this :- { "key1": { "key1.1": { "nestedkey1": "something", "nestedkey2": "something", "nest

Spring Cloud Gateway for composite API calls?

I am starting to build a Microservice API Gateway, and I am considering Spring Cloud to help me with the routing. But some calls to the Gateway API will need mu

Spring Boot - The 'Access-Control-Allow-Origin' header contains multiple values but expect only one

I read all posts on StackOverflow on this topic but did not find answer as they all are about difference scenario than mine. My spring boot API uses Spring Secu

This error handler cannot process 'SerializationException's directly;

The image below is my topic. Every once in a while, a value other than an empty or json is returned. If it is null, it throws an error as below and enters the

java.lang.IllegalStateException: No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-netflix-ribbon?

I am getting exception: FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: No Feign Client for loadBalancing d

Cannot resolve org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:unknown

I am following a tutorial to learn eureka server/client with spring boot when I try to install maven dependencies in the pom.xml I get the error in the title th

need help in creating Dynamic multilingual PDF using java spring boot

I have to create dynamic report in PDF in multiple languages like english,spanish,german,italian etc. .The report is divided in various sections which will hav

Merge logging config of Spring boot and Logback

I have a following situation: A spring boot app using logback and several logging properties configured already in application.yml I would like to add other con