Questions tagged [spring]
The Spring Framework is an open-source framework for application development on the Java platform. At its core is rich support for component-based architectures, and it currently has over twenty highly integrated modules. For Spring Boot related questions, also include the tag [spring-boot].
spring
211,905
questions
0
votes
0
answers
3
views
Best Practices for Validation in a Spring Boot Application
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
2
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 ...
0
votes
0
answers
5
views
Issues with Configuring Region in S3AsyncClient using Minio with AWS SDK for Java
I encountered an issue while configuring S3AsyncClient using the AWS SDK for Java in a Spring Boot application. Despite setting all the necessary properties, I keep receiving the following error ...
1
vote
0
answers
12
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 ...
0
votes
0
answers
13
views
Spring Cloud Open Feign Client cuts request body to first "key=value"
Have some request
@FeignClient(
name = "someServer",
url = "someUrl",
configuration = FeignProxyConfiguration.class)
public interface ServerFeign {
@...
1
vote
1
answer
22
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 ...
0
votes
0
answers
9
views
Spring Security 6.2.0 OAuth2 configuration via XML
I am working with a legacy Spring application which uses XML configuration.
A new requirement is to introduce the OAuth2 client-credentials flow for a couple of specific webhook endpoints. I am ...
0
votes
0
answers
15
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 for to build the repo on every commit.
I am using the frontend-...
1
vote
1
answer
22
views
Spring Security : stackoverflow error after submit login form to ".loginProcessingUrl("/perform_login")"
intelliJ debug log is below.
enter image description here
and stackoverflow error log is
2024-07-26T14:01:13.600+09:00 DEBUG 17896 --- [nio-8880-exec-9] o.s.security.web.FilterChainProxy : ...
0
votes
0
answers
10
views
Dynamic procedure name on StoredProcedureItemReader
I wrote a class that extends StoredProcedureItemReader in the following way:
@Component
public class SpFirstReader extends StoredProcedureItemReader<StudentResults> implements ...
0
votes
1
answer
48
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
46
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
17
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
24
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
22
views
Error Handling in Spring boot kafka in Batch Listener
Working on a Spring boot application where it listens to kafka topic, process and inserts to DB. Currently we are manually acknowledging the messages and using batchlistener as "true". We ...