added viewresolver to javaconfig