configured mvc spring, added mongodb connection, created sample rest api