changed default-servlet.xml to java config