Reputation: 1
No collection was created in Mongo(No user collection), Using template to save objects(save user object)
@Transactional
public void saveSingleObject() {
template.save(new User("james", "james", 'ddd'));
}
exception : Command failed with error 263 (OperationNotSupportedInTransaction): 'Cannot create namespace test-mongo.processes in multi-document transaction.
but User collection in mongo , no exception
Upvotes: 0
Views: 2025