Follow HttpBasic configuration for web.xml configuration to add Deligating Filter Proxy for spring security and Dispatcher Servlet for manage spring mvc structure.
https://techa2zsolution.blogspot.in/2017/08/http-basic-security-using-spring.html#more
Now creating custom and default spring form like.
https://techa2zsolution.blogspot.in/2017/08/http-basic-security-using-spring.html#more
Now creating custom and default spring form like.