mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-28 04:59:10 +00:00
Fix exception message
Fixes gh-13783
This commit is contained in:
+1
-1
@@ -88,7 +88,7 @@ public abstract class ApplicationContextServerWebExchangeMatcher<C>
|
||||
@SuppressWarnings("unchecked")
|
||||
private Supplier<C> createContext(ServerWebExchange exchange) {
|
||||
ApplicationContext context = exchange.getApplicationContext();
|
||||
Assert.state(context != null, "No WebApplicationContext found.");
|
||||
Assert.state(context != null, "No ApplicationContext found.");
|
||||
if (this.contextClass.isInstance(context)) {
|
||||
return () -> (C) context;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user