We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
通配符*与@param不兼容
@at("/list/*") public Map<String, Object> list(Long codeId, @param("pageNo")Integer page)
使用了通配符*与@param(""), 如果路径上的参数大于1那么, 会把page给注入进去, 我觉得应该排除带有Param的参数.
The text was updated successfully, but these errors were encountered:
No, 路径参数最优先.
Sorry, something went wrong.
但是有很多参数是不能放在路径参数里面的, 如果出现乱添加路径的话, 会存在一定的问题
如果仅仅一个,那么你应该试试
@At("/list/?") public Map list(Long codeId, @Param("pageNo")Integer page)
No branches or pull requests
通配符*与@param不兼容
@at("/list/*")
public Map<String, Object> list(Long codeId, @param("pageNo")Integer page)
使用了通配符*与@param(""), 如果路径上的参数大于1那么, 会把page给注入进去, 我觉得应该排除带有Param的参数.
The text was updated successfully, but these errors were encountered: