Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Different name for hypermedia links attribute in json response after using RestTemplateBuilder for the first time (links vs _links). We have adopted a legacy application which has several rest ...
Fachher's user avatar
  • 28
-4 votes
0 answers
41 views

I wish to learn SpringBoot, I'd like to practice the concepts that I've learnt and build simple projects out of it to stay strong with what I learn day to day. Me being a java developer was not good ...
soul reaper's user avatar
1 vote
0 answers
30 views

I'm using Spring WebClient in my Java application to authenticate with Keycloak. The issue I'm facing is: The first WebClient request takes a long time (5-9 seconds), but all subsequent requests are ...
Anish's user avatar
  • 27
-2 votes
1 answer
41 views

In my project I've implemented Spring 7 versioning. But MockMvc tests and springdoc REST OpenApi documentation failed with exception MissingApiVersionException
Grigory Kislin's user avatar
0 votes
2 answers
47 views

I’m having trouble with Spring Cloud Gateway (WebFlux) when I define multiple Path predicates for a single route. Here is an example of my configuration in application.yml: spring: cloud: ...
Nur Sultan ASLAN's user avatar
Advice
1 vote
2 replies
43 views

in spring boot, i wanna have nested records, because if that i need to use multiset in my selects. then i need to order the whole query by fields in my multiset. but the problem is that i get a error ...
Nima Khajehpour's user avatar
2 votes
1 answer
55 views

I created a simple application which just sends in a loop messages to Kafka using KafkaTemplate with transaction mode. But, unfortunately, my code doesn't work with @Transactional in the new Spring. I ...
Artyom's user avatar
  • 119
1 vote
3 answers
115 views

I am doing the learning on Broadcom's Spring Academy to be up to date with the latest best practices. I bumped Spring Boot to 4.0.0 instead of the 3.0.0 on Spring Academy. But I am having some issues ...
Jeremy Lanssiers's user avatar
0 votes
1 answer
48 views

I trying to setup cooperation of gateway and authorization server. help me to find error in the program, when i authenticate me and enter to web authentication form username=admin and password=1 i ...
Snilspefad's user avatar
0 votes
1 answer
51 views

After upgrading my Kotlin application from Spring Boot 3.5.8 to Spring Boot 4.0.0, I get a lot of compiler errors Type argument is not within its bounds: must be subtype of 'Any'. How is it possible ...
Honza Zidek's user avatar
  • 21.8k
0 votes
1 answer
112 views

I’m building a Spring Boot REST API and I’m stuck on an issue that I can’t figure out. I have a simple POST endpoint that should receive a JSON payload and map it to a DTO, but every time I call the ...
FrJ's user avatar
  • 1
1 vote
1 answer
129 views

With Spring Boot 3, I created a @ConfigurationProperties record with @NotBlank validation to manually set the base URL on the RestClient that is passed to the HttpServiceProxyFactory For example: @...
Wim Deblauwe's user avatar
  • 27.2k
0 votes
0 answers
41 views

I’m trying to connect my React frontend (hosted on Azure Static Web Apps) to my Spring Boot backend (hosted on Azure App Service), but the CORS preflight request is failing with HTTP 403. When I run ...
tjDoe's user avatar
  • 1
Best practices
0 votes
1 replies
48 views

I'm a DevOps engineer trying to implement password rotation for multiple services, some are Python, some Node but most are Kotlin and are using spring-boot, Our passwords are encrypted outside AWS and ...
Erez Hochman's user avatar
  • 1,708
0 votes
0 answers
22 views

For most of my Controllers, I have a bean and optionally a MultipartFile @RequestParam and this works very nicely. It's good for files that are relatively small. But separately I have a small number ...
Tony Schwartz's user avatar
1 vote
1 answer
348 views

Impossible to import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc; In spring-boot-starter-test missed org.springframework.boot.test.autoconfigure.web package.
Grigory Kislin's user avatar
0 votes
1 answer
115 views

Spring 3.x code after migration to Spring Boot 4.x give exception: ... required a bean of type 'com.fasterxml.jackson.databind.ObjectMapper' that could not be found pom.xml <dependency> ...
Grigory Kislin's user avatar
1 vote
1 answer
60 views

I'm trying to connect my Spring Boot application (using spring-boot-starter-data-mongodb) to a MongoDB instance within a shared Docker network managed by docker-compose. The connection is failing, and ...
SidaliFetoumi's user avatar
0 votes
0 answers
56 views

I have this Spring Security configuration for Spring cloud 2025.0.0: import org.springframework.security.web.util.matcher.AntPathRequestMatcher; private RequestMatcher[] permittedAntMatchers() { ...
Peter Penzov's user avatar
  • 1,102
-1 votes
0 answers
55 views

I'm migrating a Kotlin + Spring WebFlux application from Spring Boot 2.5.x to Spring Boot 3.5.x, and several controller endpoints that used to work now consistently fail with ClassCastException. 🔍 ...
akagami's user avatar
  • 15
0 votes
1 answer
76 views

I want to use HTTP Service Clients with Spring Boot 4, but using Protobuf instead of JSON. How can I configure this?
Wim Deblauwe's user avatar
  • 27.2k
1 vote
0 answers
22 views

I have a Spring Boot / Java application following Domain-Driven Design and Event-Driven Architecture. In my domain service, I create a ReservationCreatedEvent (a domain event) and publish it: ...
Nur Sultan ASLAN's user avatar
3 votes
1 answer
64 views

After upgrading to Spring Boot 4 I don't see any span/trace ids in my logs where I used to @GetMapping fun hello(): String { logger.info("Hello World!") return "Hello World!&...
msosa's user avatar
  • 33
1 vote
1 answer
93 views

I created a custom validator called @UniqueElementsById which I am applying as an annotation to Service method parameter like: public interface MenuDetailService { List<MenuDetail> ...
Guppy_00's user avatar
  • 317
1 vote
1 answer
61 views

Let's say I have a spring-boot-based project, that uses spring data jpa to define entities and map them to a postgres db. The entity has some @ManyToOne annotatated "joins" - with eager ...
Vito De Tullio's user avatar
0 votes
1 answer
93 views

I follow the book Cloud Native Spring in Action and I encountered this error. I used the Paketo Buildpacks to build the image using ./gradlew bootBuildImage. Full source code: https://github.com/...
Arkadi's user avatar
  • 29
Advice
2 votes
3 replies
108 views

Spring Boot 4.0 and Spring Framework 7.0 were recently released, and I’m considering upgrading my project. However, my application uses Thymeleaf, specifically the thymeleaf-spring6 integration module,...
Sven's user avatar
  • 2,603
Best practices
0 votes
2 replies
44 views

A CSV file needs to be processed using Spring Batch where multiple rows could be grouped based on a field value. In the below sample, two lines in the CSV have the same GROUP_NAME with the value ...
pradhan's user avatar
  • 43
1 vote
0 answers
90 views

I have a Spring Boot 3 application with a global exception handler that works perfectly when I run it locally, but when I deploy the same code to Render, the exception handling stops working — I only ...
Nicolas Medeiros Cascaes's user avatar
Best practices
0 votes
1 replies
46 views

I am aware of two approaches. Below are Dockerfile snippets. # This approach generates and runs application classes stored in the `extracted_layers/application/BOOT-INF/classes/` folder. . . . RUN ...
OSGI Java's user avatar
  • 645
1 vote
1 answer
55 views

I am using Drools 10.1.0 (drools-xml-support) with Spring Boot, and I have a kmodule.xml with two KBases, each pointing to a different folder. In IntelliJ/IDE everything works perfectly. But when I ...
JavaLearner's user avatar
0 votes
1 answer
58 views

I recently migrated from Spring Boot 3 to Spring Boot 4 and ran into an issue loading environment variables from a .env file. I was using: <dependency> <groupId>me.paulschwarz&...
Zakaria Akrach's user avatar
0 votes
0 answers
52 views

I am implementing Open Telemetry for Spring Boot 4.0 (spring-boot-starter-opentelemetry) trying to follow https://spring.io/blog/2025/11/18/opentelemetry-with-spring-boot. I have a simple controller: @...
caiovss's user avatar
  • 113
0 votes
0 answers
69 views

We are using Spring Boot 3.5.6 and using Netty to call a downstream HTTP system. We create HttpClient and use proxyWithSystemProperties() to let netty create ProxyProvider using Java System Properties ...
P P's user avatar
  • 81
2 votes
1 answer
140 views

Spring Boot has released new version 4.0.0. They have provided migration guide. I am not able to find to where 'MockBean' annotation is moved. Currently I am importing starter-test, starter-kafka-test ...
Brundha Srinivas's user avatar
Advice
0 votes
5 replies
163 views

I am new to Java and starting with Spring Boot development. I prefer using lightweight code editors like Zed, Lite-XL and Helix and want to avoid the high resource usage and complexity of full IDEs (...
Mitesh Firake's user avatar
-4 votes
0 answers
45 views

I need to be able to return audio or video from a Spring Boot Api. I cannot find any documentation for this. Could you help me find resources for this topic ?
Hüseyin Çataloğlu's user avatar
0 votes
1 answer
71 views

I am learning Spring Authorization Server and trying to build a simple OAuth2 Authorization Server without OpenID Connect. i want to handle the login page myself inside the same Authorization Server ...
Praveen kumar's user avatar
4 votes
2 answers
184 views

Because Spring Boot 4.0 was released, I tried to create a new repository and use it to generate a native image. After it was successfully generated, this error occurred when I tried to start it. My ...
Leon White's user avatar
1 vote
1 answer
69 views

In Spring Boot 2.6.0 java 8 application configuration class has content: @Configuration public class Internationalization implements WebMvcConfigurer { // localeResolver, localeChangeInterceptor,...
haoz's user avatar
  • 11
0 votes
0 answers
42 views

I've a Spring Boot App deployed to an Azure App Service. Sometimes, the application is killed and relaunched, I don't known why. The main issue is not the application is restarted (it's an issue), but ...
Jerome Dupont's user avatar
-6 votes
0 answers
66 views

I am trying to implement web push notifications in my project, but none of the approaches I tried are working. I’m not sure whether the issue is on the frontend, backend, service worker, or the push ...
MANOJ V's user avatar
1 vote
0 answers
41 views

I’m encountering an issue with possible idempotencyBreachException in a service used by Kafka listener. I’m not entirely sure how to handle this situation correctly. I have a lockExecutor that locks a ...
Bogysh's user avatar
  • 11
0 votes
0 answers
56 views

I am upgrading an app to newest Spring Boot 3, and because of that Spring Batch is upgraded to 5.2.3 (from 4.3.10). The application did not persist batch states previously, it was using the "map ...
riskop's user avatar
  • 1,839
0 votes
0 answers
39 views

I'm setting up the environment for a project of the company I work for. It's a multi module backend runing Spring Boot. I didn't have problems with most of the setup, but one of the project's modules, ...
VFMiracle's user avatar
0 votes
1 answer
32 views

I implemented a rest controller in my SpringBoot backend, which receives a json and maps it to an dto object via SpringBoots default Jackson configuration: So we got: The Rescontroller signed like ...
Michael Jackson-Mapping's user avatar
0 votes
0 answers
56 views

I have an unclear situation. I'm using a controller with any endpoints. I have a two methods with Get endpoints /short and /{idOrCode}. Pathvariable is a String type. Endpoint with this pathvariable ...
ivvasch's user avatar
  • 71
-1 votes
0 answers
38 views

I'm working on a Spring Boot application using IntelliJ IDEA. I can run the application locally with a Maven run configuration using the goal spring-boot:run, and it works as expected, I have also ...
paymer's user avatar
  • 506
1 vote
1 answer
289 views

I have the following errors using Java 17 with Spring Boot 4.0.0: Cannot resolve symbol 'DataJpaTest' Cannot resolve symbol 'AutoConfigureTestDatabase' The problem happens in a JUnit test class ...
Aliuk's user avatar
  • 1,417
0 votes
0 answers
43 views

I'm using Kotlin + Spring Boot 3.4.1 with spring-boot-starter-data-elasticsearch and Elasticsearch 8.12.2. Existing document: @Document(indexName = "crashes_summary") data class CrashSummary(...
Ozgur Baykal's user avatar

1
2 3 4 5
3014