Do not crash on WebFlux handler functions data parsing
This commit is contained in:
@@ -62,7 +62,14 @@ Example entry:
|
||||
|
||||
private JSONObject getHandlerMethod() {
|
||||
JSONObject details = getDetails();
|
||||
return details == null ? null : details.getJSONObject("handlerMethod");
|
||||
if (details != null) {
|
||||
if (details.has("handlerMethod")) {
|
||||
return details.getJSONObject("handlerMethod");
|
||||
} else if (details.has("handlerFunction")) {
|
||||
//TODO: handler function for the Router bean
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private JSONObject getRequestMappingConditions() {
|
||||
|
||||
Reference in New Issue
Block a user