8

Can someone tell me how do I configure spring data mongoDB in such a way that it does not create a new collection(if it does not exist) but throws an exception while inserting a document?

Rakesh
  • 466
  • 3
  • 12

1 Answers1

0

Not easy way - other answer

says: turn on access control and then create a role with the appropriate restrictions. Read docs using links there.

Arthur
  • 1,156
  • 3
  • 20
  • 49