4 thoughts to “Spring Boot Login and Registration example with MongoDB”

  1. Tanks for tutorial.

    Hint for remove _class:

    public MongoTemplate mongoTemplate(MongoDatabaseFactory mongoDbFactory, MongoMappingContext context) {
    // remove _class from collections
    MappingMongoConverter converter = new MappingMongoConverter(new DefaultDbRefResolver(mongoDbFactory), context);
    converter.setTypeMapper(new DefaultMongoTypeMapper(null));

    // Registers all default converters. Makes java 8 dates easier

    return new MongoTemplate(mongoDbFactory, converter);

  2. It’s actually a nice and helpful SpringBoot tutorial. I’m happy that you simply shared this. Thanks!

Comments are closed to reduce spam. If you have any question, please send me an email.