Spring MVC do not have login, may be you will need to use Spring security and by adding filter to your web application as:
myFilter
org.springframework.web.filter.DelegatingFilterProxy
myFilter
/*
then you can apply spring security check this link http://static.springsource.org/spring-security/site/docs/3.0.x/reference/security-filter-chain.html
Spring supports integration with many technologies. So it mainly depends on how you are going to log-in.
If you are going to log-in using LDAP, spring provides integration with it and you can easily configure it.
If you are going to log-in using DB authentication there is a different configuration for it, etc.
You can check the below URLs for different ways of spring security examples.
http://krams915.blogspot.com/2011/01/spring-security-mvc-using-ldap.html
http://www.mkyong.com/spring-security/spring-security-form-login-example/
http://kh-yiu.blogspot.com/2012/12/spring-mvc-security-custom.html
http://fruzenshtein.com/spring-mvc-security-mysql-hibernate/