All Questions
Tagged with java spring-boot
77,623
questions
0
votes
0
answers
6
views
KafkaConsumer is not able to process 2 million records
I am facing issue while fetching 2 million records from kafka topic through a consumer.
My requirement is to fetch the record and store those records into a Map and return that Map to other methods so ...
0
votes
0
answers
5
views
Show pdf file uploaded by user in Primefaces | Spring Boot
I have a widget to upload a file, and I want to preview the file after upload. I am using p:media tag but it is not showing the uploaded pdf file.
However, I have another widget where there is an ...
-1
votes
0
answers
7
views
Spring Boot JSON Merge Patch map properties to custom type field
In our codebase, we have a class called OptionalOrUndefined
public class OptionalOrUndefined<T> {
@Getter private final boolean defined;
private final T value;
public static <T> ...
0
votes
0
answers
20
views
Proper way to shut down a Spring Boot application after a specific unit of work is completed
I have a number of Spring Boot services that are always running that perform several different kinds of tasks. For example I have one service that is reading from an Azure Service Bus queue using ...
-1
votes
0
answers
6
views
ObservationHandler<ServerRequestObservationContext> does not expose context values to DefaultServerRequestObservationConvention
I am trying to use and extend spring boot's Observation API solution for instrumenting metrics for spring mvc http.server.requests.
I'm trying to add a custom tag, with the key duration, and a value ...
0
votes
0
answers
17
views
OpenAPI Swagger Documentation Jargons
I have configured OpenAPI documentation in my spring boot application. Everything is coming that is expected but there are a lot of jargons coming up. Only the highlighted and ticked values are ...
0
votes
0
answers
13
views
OkHttp Response doesn't have provided body object on the client side
I am writing REST APIs using okhttp library in Spring Boot. I have my OkHttpClient requesting a GET request(client) from another API(server). Both the client and server uses OkHtttp libraries, so I ...
-1
votes
1
answer
17
views
Upload an Excel sheet with huge number of records to a MySql database in the form of a JSON
I have a requirement in Spring Boot project, where I have a huge Excel file with 15-20 sheets, each sheet containing 30,000 rows with an average of 15 columns in each sheet.
My Database is roughly as ...
-1
votes
1
answer
26
views
Spring RestTemplate - How to remove `client_secret` from the logs?
My backend application currently leaks client_secret inside my log file. I would like to keep the log level of DEBUG except for the RestTemplate where I don't want this line to be executed.
The log ...
-2
votes
0
answers
19
views
Using a Bean method result in a static context [closed]
I've got a class:
public class SomeBean {
public String getSomeValue() {
return "result";
}
}
I am using this class as a bean:
@Configuration
public class ...
-1
votes
0
answers
11
views
Can't download files content-disposition inline with a POST request from my app after activating CORS on a spring boot 3 application on Chrome/Edge
I'm currently working on a java spring boot (3.2) application with Spring MVC and secured with Spring security.
I wanted to add a CORS configuration on my app but this add a bug on downloading files ...
0
votes
1
answer
19
views
Spring controller and processing of parameter string as an array of strings
I encountered this problem. I have a simple spring REST controller that has a get method, it should process a request like this http://localhost:8080/test/get?params=["param1", "param2&...
0
votes
0
answers
26
views
How to catch the PSQLException exception? [closed]
How to catch the **PSQLException ** exception? I am using Spring boot JDBCTemplate and it can throw a PSQLException exception. Using try-catch, I get this message from IDEA: "Exception 'org....
-1
votes
1
answer
41
views
Best Practices for Validation in a Spring Boot Application [closed]
In my Spring Boot application, I have encountered a scenario where multiple services interact with each other, and objects passed between them need to be validated. Currently, I am using @Valid in the ...
0
votes
0
answers
12
views
Bean Could not be found despite proper project file structure
File Structure screenshot
I've seen other posts solving this issue with this exact file structure yet no matter what I do it always gives me this error:
***************************
APPLICATION FAILED ...