spring-framework
spring-framework copied to clipboard
Spring Framework
For the cases when using MockRestServiceServer on an integration test, I think we could benefit having some options to make it bypass certain requests that are available in the local...
**Versions** Spring Version 5.3.22 **Overview** I wanted to get all the HandlerInterceptor that had been registered in Spring MVC after the application was successfully launched, but I found that this...
**Affects:** v5.3.22 and prior. Module is spring-webflux The `insertCheckpoint` method in `DefaultWebClient` seems to log the URI. In few scenarios this URI can have sensitive information like email or phone...
**Affects:** All versions --- **Context** I like that ` ResponseEntity ResponseEntity.of(Optional body)` gives a 200 OK with a body if it is present inside the optional and a 404 for...
`ObjectProvider` support a method to get bean with specified args. (#18529) But I have a collection beans to autowired, Use `ObjectProvider`, but now it looks like the `args` not effect,...
Using `TestCompiler` with `@CompileWithTargetClassAccess` can lead to the following ``` java.lang.LinkageError: loader org.springframework.aot.test.generate.compile.CompileWithTargetClassAccessClassLoader @19324eab attempted duplicate class definition for org.springframework.test.context.jdbc.EmptyDatabaseConfig$$SpringCGLIB$$0. (org.springframework.test.context.jdbc.EmptyDatabaseConfig$$SpringCGLIB$$0 is in unnamed module of loader org.springframework.aot.test.generate.compile.CompileWithTargetClassAccessClassLoader @19324eab, parent...
`FilePatternResourceHintsRegistrar` is not used anywhere in the Spring Framework code base, but it is used in Spring Boot. We should consider moving `FilePatternResourceHintsRegistrar` to Spring Boot or improve the documentation...
**Affects version:** 5.3.22 ## 该问题造成的影响: 尊敬的团队,当我使用 `@PropertySource` 注解通过 `YamlPropertySourceLoader` 加载时,即使 `ignoreResourceNotFound` 属性为 `true`,仍然会因无法找到文件抛出 `FileNotFoundException` 异常,导致项目无法启动。 #### Configuration code ``` @Configuration @PropertySource(value = {"classpath:command.yml", "file:config/custom-command.yml"}, factory = YamlPropertySourceFactory.class, encoding = "UTF-8",...
The `TestContextAotGenerator` currently does not provide support for `@ContextHierarchy`; however, we should probably consider adding support for context hierarchies before 6.0 GA.
As spring test framework support testExecutionListener automatic discovery, when i build project using spring security with testng, it can not load *META-INF/spring.factories* file in org.springframework.security:spring-security-test library.(Same as Junit4, but works...