All Questions
130,555
questions
0
votes
0
answers
5
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 ...
-2
votes
0
answers
16
views
Using a Bean method result in a static context
I've got a class:
public class SomeBean {
public String getSomeValue() {
return "result";
}
}
I am using this class as a bean:
@Configuration
public class ...
0
votes
0
answers
13
views
Validation Problem For Request Class in Spring
In the application, I have an entity class named "Car" and a request class named "AddCarRequest" from which I will get information about that class via user input.
@RequestMapping(&...
-3
votes
0
answers
14
views
Basic auth to get token in spring security oauth2
So i have migrated my token service from spring 2.4.5 to 3.2.3, there are many changes in spring security, i'm refactored my SecurityConfiguration, UserDetailsService etc, but i have a problem with ...
-1
votes
1
answer
40
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
11
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 ...
1
vote
0
answers
13
views
Java MongoDB not mapping extended classes
I have a base class Person and 2 classes that extends from it. When I insert instances of these classes into the database, it keeps all the info about the extended classes as shown below.
Below is the ...
1
vote
1
answer
24
views
How to convert a row from a table to ENUM in JOOQ?
JOOQ does not convert rows from a table to enum
I tried different conversion methods, but they either didn't do anything, or they displayed errors, I tried to add codegen jooq, but I can't do it, I ...
-1
votes
0
answers
20
views
'npm run build' failed in Github actions and frontend-maven-plugin for Java spring-boot app
I am building a monolithic app using Java spring-boot and Reacjs for UI. My repository is hosted on Github and I am using Github Actions to build the repo on every commit.
I am using the frontend-...
0
votes
1
answer
53
views
Which version of Springdoc is compatible with Spring boot 3.2.8?
Which version of Springdoc (springdoc-openapi) is compatible with Spring Boot 3.2.8?
I'm unable to open Swagger UI via localhost.
I have a project that runs on Spring Boot 3.2.8 and cannot downgrade ...
-1
votes
0
answers
48
views
Java app memory increase very fast and GC happening too frequent [closed]
I have a spring boot cronjob running in container. I found that container were killed by kubernetes several times.
This is the memory and CPU profiling of the app when the job is running:
This is ...
1
vote
0
answers
19
views
How to implement a double relation between entities with hibernate 6.5
I have a database on which 2 tables have a double relationship :
Database graph
The Spot may be the parent of several SpotConditions, so there is a basic OneToMany relationship.
But in addition, each ...
1
vote
1
answer
26
views
Spring Boot Application Runs in IntelliJ IDEA but Fails with mvn install Due to JDBC URL Error
I'm encountering an issue with my Spring Boot application. It runs perfectly fine when I start it directly from IntelliJ IDEA by clicking the play button. However, when I try to build the project ...
0
votes
0
answers
26
views
Error Handling in Spring boot kafka in Batch Listener
Working on a Spring boot application where it listens to Kafka a topic, processes, and inserts to DB. Currently, we are manually acknowledging the messages and using batchlistener as true. We are ...
-1
votes
0
answers
19
views
spring boot postmapping request header too large
I am trying to convert an html string to pdf using flying saucer, the code works fine on my local, but then when I deploy to dev environemtn, im getting request header too large error. I tried adding ...