add script to pom.xml and web.xml for spring 4