tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
439 stars 144 forks source link

关于插件返回值的问题 #1072

Open gghxjava opened 1 year ago

gghxjava commented 1 year ago

大佬我发现我们的返回值永远是json,这是为什么

    @GetMapping("/getJsonWithResponseBodyString")
    public String getJsonWithResponseBodyString() {
        return "home.html";
    }

这种的 ,或者我返回的是一个文件,为什么只有json ,我先知道一下您的考虑

tangcent commented 1 year ago

没有特殊考虑,纯粹是我用到的场景一直是返回json 对于你提供的这个接口,怎么让插件知道返回的不是"home.html"而是文件呢?

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.