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

控制器如果绑定RequestMapping访问前缀就无法使用文档生成 #2

Closed
HelloZYHs opened this issue Aug 4, 2021 · 3 comments

Comments

@HelloZYHs
Copy link

image
Bug,如图所示在控制器设置前缀就无法在doc.html生成,反之去掉控制器前缀就可以生成文档

@HelloZYHs
Copy link
Author

问题控制器代码如下:这样设置就无法生成
@RestController
@RequestMapping("test/")
public class TestController {
@GetMapping(value = "/get/{id}")
public User test(@ParamDesc("id") @PathVariable(value = "id") String id){
User u = new User();
return u;
}
@GetMapping(value = "/last")
public User test(User user){
return user;
}
@PostMapping(value = "/post")
public User test1(@RequestBody User user){
System.out.println(user);
return user;
}
}

@NoBugBoy
Copy link
Owner

NoBugBoy commented Aug 5, 2021

emm 你为什么要把斜线写在后面。。 @RequestMapping("/test") 就可以了 。反正也算是个问题 下一版我优化一下

@HelloZYHs

@NoBugBoy
Copy link
Owner

1.0.7已经修复了这个问题

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

2 participants