Add mongodb dependency and enable spring security configuration.