Refactor @ConfigurationProperties that only use prefix
See gh-43917 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Phillip Webb
parent
7bcdb7d3ee
commit
c1d97ffe16
@@ -67,7 +67,7 @@ public class WebTestClientAutoConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConfigurationProperties(prefix = "spring.test.webtestclient")
|
||||
@ConfigurationProperties("spring.test.webtestclient")
|
||||
public SpringBootWebTestClientBuilderCustomizer springBootWebTestClientBuilderCustomizer(
|
||||
ObjectProvider<CodecCustomizer> codecCustomizers) {
|
||||
return new SpringBootWebTestClientBuilderCustomizer(codecCustomizers.orderedStream().toList());
|
||||
|
||||
@@ -60,7 +60,7 @@ class MockMvcConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
@ConfigurationProperties(prefix = "spring.test.mockmvc")
|
||||
@ConfigurationProperties("spring.test.mockmvc")
|
||||
SpringBootMockMvcBuilderCustomizer springBootMockMvcBuilderCustomizer() {
|
||||
return new SpringBootMockMvcBuilderCustomizer(this.context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user