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,则会报错! #59

Closed
lzyforever opened this issue Jun 13, 2020 · 2 comments
Closed

Comments

@lzyforever
Copy link

在源码ApiEncryptDataInit类中处理requestMapping注解时,见下面源码:
} else if (null != requestMapping) {
RequestMethod m = requestMapping.method()[0];
methodType = m.name().toLowerCase() + ":";
uri.append(formatUri(requestMapping.value()[0]));
}

直接取的requestMapping.method()[0],此时会取不到请求的method,将会报数组越界!请fixed! 嘿嘿

@yinjihuan
Copy link
Owner

已修复 https://github.com/yinjihuan/monkey-api-encrypt/releases/tag/1.2.1.RELEASE

@lzyforever
Copy link
Author

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