spring-framework
spring-framework copied to clipboard
Spring Framework
The Javadoc of `BoostrapWith` currently states: > This annotation may also be used as a meta-annotation to create custom composed annotations. Note, however, that a locally declared @BootstrapWith annotation (i.e.,...
There is an inconsistent support in `GeneratedContext` at the moment. Source code benefits from `GeneratedClasses` with several helper to generate unique class names based on feature or feature component. Resources,...
When `spring.mvc.problemdetails.enabled=true`, I want to customize the response for `MethodArgumentNotValidException` using `@ExceptionHandler` in my `@RestControllerAdvice` — **without extending `ResponseEntityExceptionHandler`**. However, my custom handler is **silently ignored** with no warning or...
### 📄 **Context / Problem Statement** In distributed systems, it's common to run Spring Boot applications with multiple instances. For cron-based scheduled tasks (e.g., `@Scheduled(cron = "0 0 2 *...
This PR addresses issue #35882. It does the following: 1. Allows for ordering handlers based on path specificity, so handlers are selected based on how well a `PathPattern` matches the...
We like having interfaces define a contract for beans, and we also like having things like auto-configuration. However, we can have situations where we know we only want there to...
Using Spring Boot 3.5.7 so `org.springframework:spring-webmvc:6.2.12`, but probably affects latest version as well given the documentation is clear about the expected behavior: https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-ann-rest-exceptions.html#mvc-ann-rest-exceptions-render Doc states: > You can return ProblemDetail...
See https://github.com/spring-projects/spring-framework/issues/29370 for context Background: We declaratively create `RestClients` during start-up based on the configurations. We keep track of the created clients and need to refresh the client (basically create...
**Spring Module and Version** Spring Web – v7.0.1 **Issue Description** I have a few suggestions regarding improvements to parts of the `UrlHandlerFilter` implementations. They are not necessarily requests, but just...
Version of Spring Boot : 4.0.0, after migration from 3.5.x Context: I have some JUnit test class annotated with `@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)`. This class does not contain any test case...