diff --git a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java index 464c0acdb..5becc07e4 100644 --- a/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java +++ b/springdoc-openapi-starter-common/src/main/java/org/springdoc/core/providers/SpringCloudFunctionProvider.java @@ -129,7 +129,7 @@ public List getRouterOperations(OpenAPI openAPI) { functionCatalog -> { Set names = functionCatalog.getNames(null); for (String name : names) { - if (!RoutingFunction.FUNCTION_NAME.equals(name)) { + if (!RoutingFunction.FUNCTION_NAME.equals(name) && applicationContext.containsBean(name)) { FunctionInvocationWrapper function = functionCatalog.lookup(name); if (function.isFunction()) { for (RequestMethod requestMethod : functionRequestMethods) {