Disable create collection in spring data mongoDB
Asked Answered
H

1

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?

Haemolysin answered 25/10, 2017 at 4:45 Comment(0)
D
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.

Depositor answered 3/10, 2022 at 11:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.