Automatic index creation will be disabled by default as of Spring Data MongoDB 3.x.
spring data mongoDb 根据注释自动创建索引将于3之后默认关闭
报警如下:
Please use 'MongoMappingContext#setAutoIndexCreation(boolean)' or override 'MongoConfigurationSupport#autoIndexCreation()' to be explicit.
However, we recommend setting up indices manually in an applicatio
原创
2022-05-25 23:38:25 ·
1311 阅读 ·
3 评论