Added sessionFactory bean in spring.xml (renamed from badminton.xml). Minor change to badminton.jsp accordingly.