Answer the question
In order to leave comments, you need to log in
How can I not have to search for a user every time in Spring?
In general, every time I access a controller in Spring, I have to look for a user, create an object, and already work with it. Those. let's say I go to /profile, I pull out the name of the authorized user, I look for it in the Base, if everything is fine, then I work with it. I click on /index, then again I have to look for the user in the database, create an object and again build a page for it. How to avoid searching and creating a new object?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question