Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法生成接口和实现分离的API #44

Open
amw3344 opened this issue Dec 15, 2021 · 2 comments
Open

无法生成接口和实现分离的API #44

amw3344 opened this issue Dec 15, 2021 · 2 comments

Comments

@amw3344
Copy link

amw3344 commented Dec 15, 2021

例子如下
接口
public interface IContractSignApi {
@PostMapping(value = {"/sign"}, produces = {"application/json"})
RestResponse sign(@Valid @RequestBody ContractSignReqDto reqDto);
}

实现
@RestController
@RequestMapping("/v1/contract")
public class ContractSignApiImpl implements IContractSignApi {
@OverRide
public RestResponse sign(ContractSignReqDto reqDto) {

}

}

@gudqs7
Copy link

gudqs7 commented Apr 9, 2022

@amw3344 是 spring cloud 的写法吗?

@wolong438
Copy link

@amw3344 是 spring cloud 的写法吗?

是滴,我也遇到这个问题。target目录下生成了api的markdown文件,但是YAPI上面只看到api_generator文件夹,里面没有接口。另外markdown里的字符编码是GBK的,不是UTF-8。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants