Spring boot with Mongodb (Class _Accessor)

Asked

Viewed 15 times

0

I have an API that uses Spring-boot and makes a recording in Mongodb. I was doing some local tests and I found that it has a class with high object allocation but wanted to understand where this class comes from since it was not defined in the project.

I’ve defined my class (BaixaOperacionalDocument) with the notation @Document representing the data structure I’m saving.

What it seems to me is something that spring does, or the lib of Mongo, at the time of execution of this class, and so it gets that name, which would be the name of the class added to _Accessor_ud22lx.

Would someone explain to me how this class is generated and why it would be allocating so many objects?

inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.