Skip to main content
The 2024 Developer Survey results are live! See the results

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].

0 votes
0 answers
6 views

MultiPart Request Spring

How can I make a breakpoint in my api to receive a request with json + file using Spring? I've already tried using RequestParam, RequestBody and RequestPart, but none of it worked. It works to receive ...
Guilherme Fernando Goebel's user avatar
-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 ...
msTam's user avatar
  • 258
0 votes
0 answers
11 views

How to test a service layer in spring with mockito?

I mocked repository and service. I used when().thenReturn() method with verify but it seems that repository and service are null. For both mocked service and repository the value returned by calling ...
Hekima's user avatar
  • 1
0 votes
1 answer
22 views

JQuery - ajax sending array to Spring controller - bad request

I am using Spring 5.3.9, jackson-core and jackson-databind- 2.17.1 version. From UI, I am sending json array to the controller. I have tried multiple parameters types in the controller and none of ...
user3067524's user avatar
-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 ...
Gandalf's user avatar
  • 163
0 votes
1 answer
15 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(&...
emir 's user avatar
-3 votes
0 answers
15 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 ...
ifog's user avatar
  • 7
-1 votes
1 answer
42 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 ...
AMZ's user avatar
  • 366
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 ...
mrsteel2935's user avatar
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 ...
pomipiwimo's user avatar
0 votes
0 answers
23 views

Spring Cloud Open Feign Client send only first key-value using POST form-url-encoded

Have some request @FeignClient( name = "FeignServer", url = "url", configuration = FeignProxyConfiguration.class) public interface ServerFeign { @...
Yarik83Men's user avatar
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 ...
Будь как Я's user avatar
0 votes
0 answers
15 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 ...
Kevin's user avatar
  • 1
-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-...
cptdanko's user avatar
  • 830
1 vote
1 answer
23 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 : ...
noob_kr_computer's user avatar

15 30 50 per page