MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

@CompoundIndex non funziona in Spring Data MongoDB

Devi aggiungere quanto segue a application.properties :

spring.data.mongodb.auto-index-creation=true

o in application.yml :

spring:
  data:
    mongodb:
      auto-index-creation: true