spring-framework
spring-framework copied to clipboard
Spring Framework
### Overview Introduce `@DistributedLock` annotation that can be used together with `@Scheduled` annotation to execute scheduled task only once in a given time window across all instances of the same...
Comparing to Java's `BeanFactory.getBean(Class requiredType)`, Kotlin's `BeanFactory.getBean()` supports generic type as `T`, this commit add test to cover that and add assertions.
This PR fixes an issue where `@MockBean` fails to work with request-scoped `Supplier` without explicit bean name. ## Issue When using `@MockBean` with a request-scoped generic bean (especially `Supplier`), Spring...
I am using Spring Boot 3.4.5 + Webflux. I am building an integration with Hibernate Reactive. I want to support the timeout from `@Transactional`. The way to do that with...
Fixes #32975 and supersedes #33430 (was rebased and squashed for current main)
I run following `ApplicationRunner` Spring Boot app and I obtained checkpoint by CRIU. The app did not finish after restoring. ```java @Override public void run(ApplicationArguments args) throws Exception { if(args.containsOption("checkpoint")){...
**[Marcel Overdijk](https://jira.spring.io/secure/ViewProfile.jspa?name=marceloverdijk)** opened **[SPR-9019](https://jira.spring.io/browse/SPR-9019?redirect=false)** and commented I'm facing an issue with AspectJ Dependency Injection when creating objects with the 'new' keyword. I have 3 Configuration classes: the main AppConfig.java, the...
With spring-web 6.2.5, I get the following behavior : ``` System.out.println(UriComponentsBuilder.fromUriString(“http://myhost?a={p1}&b={p2}&a={p3}”).buildAndExpand(“a1”, “b1”, “a2”)); ``` Output : ``` http://myhost?a=a1&a=b1&b=a2 ``` I was expecting the following output : ``` http://myhost?a=a1&b=b1&a=a2 ``` It...