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注解没有method时会报错 #45

Closed
NotEdibleSalt opened this issue Oct 8, 2022 · 4 comments
Closed

类上@RequestMapping注解没有method时会报错 #45

NotEdibleSalt opened this issue Oct 8, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@NotEdibleSalt
Copy link

image

类上@RequestMapping注解没有method的值,在调用HttpMethod的of方法时会抛出空指针。需要在.map(HttpMethod::of)前面过滤空字符串

@lkqm
Copy link
Member

lkqm commented Oct 8, 2022

实际会遇到吗?我这边测试了不会报错

@NotEdibleSalt
Copy link
Author

实际会遇到吗?我这边测试了不会报错

会遇到,但不是所有接口都会出现。

@lkqm
Copy link
Member

lkqm commented Oct 8, 2022

行 后续会修复这个问题

@lkqm lkqm added the bug Something isn't working label Oct 8, 2022
@NotEdibleSalt
Copy link
Author

行 后续会修复这个问题

好的好的

@lkqm lkqm closed this as completed Nov 6, 2022
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