Update HandlerMappingIntrospector Usage in CORS support
Closes gh-16501 Signed-off-by: Evgeniy Cheban <mister.cheban@gmail.com>
This commit is contained in:
committed by
Josh Cummings
parent
ba1045e61d
commit
ad1ee28f01
@@ -70,7 +70,8 @@ public class CorsConfigurerTests {
|
||||
assertThatExceptionOfType(BeanCreationException.class)
|
||||
.isThrownBy(() -> this.spring.register(DefaultCorsConfig.class).autowire())
|
||||
.withMessageContaining(
|
||||
"Please ensure Spring Security & Spring MVC are configured in a shared ApplicationContext");
|
||||
"Please ensure that you are using `@EnableWebMvc`, are publishing a `WebMvcConfigurer`, "
|
||||
+ "or are publishing a `CorsConfigurationSource` bean.");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user