remove web.xml and applicationContext. enable java config.