sample code using spring mvc to create web site and restful api.