Add server layer and DAO,also configured web.xml and spring-servlet.xml.