Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使swagger design first定义的Spring引导Rest Api异步_Spring_Rest_Openapi_Swagger Codegen_Openapi Generator - Fatal编程技术网

使swagger design first定义的Spring引导Rest Api异步

使swagger design first定义的Spring引导Rest Api异步,spring,rest,openapi,swagger-codegen,openapi-generator,Spring,Rest,Openapi,Swagger Codegen,Openapi Generator,我正在使用SpringBoot2.3.x和OpenAPI3创建一个招摇过市的FirstRESTAPI。我得到了由openapi生成的java接口 我有一个使用字符串并返回202的API。API必须是异步的,并且在控制器方法上使用了@async,在应用程序上使用了@enablesync 在我使用@Async之前,我的API遇到了404未发现异常,一旦删除,它就会成功执行 但我的用例仍然存在,即使RESTAPI异步 有人能帮我使SpringBoot2.3RESTAPI与OpenAPI异步,并让我知道

我正在使用SpringBoot2.3.x和OpenAPI3创建一个招摇过市的FirstRESTAPI。我得到了由openapi生成的java接口

我有一个使用字符串并返回202的API。API必须是异步的,并且在控制器方法上使用了@async,在应用程序上使用了@enablesync

在我使用@Async之前,我的API遇到了404未发现异常,一旦删除,它就会成功执行

但我的用例仍然存在,即使RESTAPI异步

有人能帮我使SpringBoot2.3RESTAPI与OpenAPI异步,并让我知道这是否是一个问题吗