Spring-Security-mongoDB SpringSecurity demo app with mongoDB curd operations and Role based authentication with mongoDB user collection Add these lines in the property file to run spring.data.mongodb.uri=<your mongoDB uri> spring.data.mongodb.database=<DataBase name>