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

When using annotations like @RequestMapping with the path parameter, the generated documentation is incorrect. #518

Closed
solidarity-forever opened this issue Jun 14, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@solidarity-forever
Copy link

solidarity-forever commented Jun 14, 2023

Your Environment(您的使用环境)

  • smart-doc version:
  • plugin version (e.g. smart-doc-maven-plugin or smart-doc-gradle-plugin):2.7.0
  • build tool version(maven or gradle):

Expected Behavior(您期望的结果)

I've added the parameter @PostMapping(path = "/add", name = "添加条目") to the annotation on the Controller's interface. I hope that in the generated documentation, the URL for this interface will be /add.
我在Controller的接口上的注解上加了参数 @PostMapping(path = "/add", name = "添加条目")
希望生成的doc中,此接口的URL为/add

Current Behavior(当前结果)

In the generated documentation, the URL for this interface is /添加条目.
在生成的doc中,该接口的URL为/添加条目

Possible Solution(bug解决建议)

Steps to Reproduce (Bug产生步骤,请尽量提供用例代码)

Context(Bug影响描述)

When using annotations like @RequestMapping with the path parameter, it generates incorrect documentation.
@RequestMapping等注解使用 path 参数时会生成错误的doc

@solidarity-forever solidarity-forever added the bug Something isn't working label Jun 14, 2023
@shalousun shalousun added this to the 2.7.1 milestone Jun 18, 2023
shalousun added a commit that referenced this issue Jun 18, 2023
@shalousun shalousun changed the title @RequestMapping等注解使用 path 参数时生成的doc有误 When using annotations like @RequestMapping with the path parameter, the generated documentation is incorrect. May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants