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

url映射到controller时,关于HandlerMapping的getHandler() #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yunyun22
Copy link

遍历Map<RequestBody, HandlerBody> 修改成了通过hash去寻找。

@syhily
Copy link
Contributor

syhily commented Aug 31, 2016

equals & hashCode should be replaced by lombok.

@WebServlet(urlPatterns = "/*", loadOnStartup = 0)
public class DispatcherServlet extends HttpServlet {

/**
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is useless

@syhily
Copy link
Contributor

syhily commented Aug 31, 2016

I thought it's better than iterating the whole methodMap, but your code style is not accepted.
You should use 4 spaces, no more tabs please.

@syhily
Copy link
Contributor

syhily commented Aug 31, 2016

Test wanted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants