150,692 questions
0
votes
0
answers
13
views
Can't build native image with Spring boot 4
I'm trying to build a Spring Boot 4.0.0 project using Spring Data JPA and want to compile it to a native binary.
The first thing I notice is that Spring Boot 4.0.0 uses hibernate 7.1.8.Final, for ...
-2
votes
0
answers
38
views
Spring Framework does not exist
I am currently learning Spring Boot, everything was working earlier but now I cannot run it.
Class: BooksApplication -> also the set Main class in the configuration:
package com.------.books;
...
0
votes
0
answers
23
views
Different name for hypermedia links attribute in json response after using RestTemplateBuilder for the first time (links vs _links)
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 ...
1
vote
1
answer
47
views
Spring WebClient takes too long to process the first request — subsequent calls fast
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 ...
-3
votes
1
answer
54
views
Spring Boot 4 versioning support for tests and springdoc REST OpenApi documentation failed with `MissingApiVersionException [closed]
In my project I've implemented Spring 7 versioning.
But MockMvc tests failed with exception MissingApiVersionException`
org.springframework.web.accept.MissingApiVersionException: 400 BAD_REQUEST &...
0
votes
2
answers
47
views
spring-cloud-gateway-webflux multiple Path predicates return 404
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:
...
Advice
1
vote
2
replies
44
views
ordering whole query by the field of multiset in jooq
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 ...
2
votes
1
answer
58
views
Spring Boot 4 + Kafka in transaction mode
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 ...
1
vote
3
answers
118
views
Using Pagination & Sorting in Spring Boot 4 with CrudRepository & PagingAndSortingRepository on JDBC
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 ...
0
votes
1
answer
51
views
HTTP-403 when authentication in spring authentication server after /login in spring cloud gateway
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 ...
0
votes
1
answer
64
views
"Type argument is not within its bounds: must be subtype of 'Any'" in Kotlin application after upgrade to Spring Boot 4.0.0
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 ...
0
votes
1
answer
113
views
Spring Boot: 400 Bad Request when sending JSON to POST endpoint (request body always null)
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 ...
1
vote
1
answer
130
views
How to fail at startup in Spring Boot 4 if the base-url property is not set?
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:
@...
0
votes
0
answers
42
views
Spring Boot CORS preflight request returns 403 "Invalid CORS request" for POST /login
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 ...
Best practices
0
votes
1
replies
49
views
Doing password rotation with spring-boot
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 ...