spring - Where should I put the login logic? DispatcherServlet or a Filter? -
the following 2 things both implement front controller pattern:
dispatcherservletdefined springfilterdefined servlet spec
i think login logic should placed in front controller. 1 should use in spring mvc web application?
instead of implementing own, recommend use spring-security.
btw: way spring-security hooks http-request handling process (the "entry"-point), based on servlet filter (org.springframework.web.filter.delegatingfilterproxy).
Comments
Post a Comment