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

Springboot中,面对带有注释的函数参数,插件无法解析出来 #589

Open
sirius-tzq opened this issue Aug 23, 2023 · 0 comments

Comments

@sirius-tzq
Copy link

描述bug(必填)

在SpringBoot中,如果函数参数采用Restful风格,函数参数前面会带有注释如@PathVariable、@requestbody,这种情况下插件解析不出参数

注释设置(必填):

VsCode设置:

    "fileheader.customMade": {
    },
    "fileheader.cursorMode": {
        "description": "", // 函数注释生成之后,光标移动到这里
        "param": "", // param 开启函数参数自动提取 需要将光标放在函数行或者函数上方的空白行
        "return": "",
        "author": "sirius",
    },
    "fileheader.configObj": {
        "autoAdd": false,
        "NoMatchParams": "no param",
        "moveCursor": true,
    },

文件后缀(必填):

.java

你得到的注释(必填):

你生成的注释为:

/**
     * @description: 
     * @param {*}
     * @return {*}
     * @author: sirius
     */

也可以贴上截图:

预期的行为(必填):

预期得到的注释/行为:

    /**
     * @description: 
     * @param {String} mobilePhoneNum
     * @param {String} password
     * @param {String} username
     * @return {*}
     * @author: sirius
     */ 

也可以贴上截图:

屏幕截图(选填)

image

问题相关(选填)

错误日志(选填):

怎么生成错误日志?

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

1 participant