Answer the question
In order to leave comments, you need to log in
How to inject a repository in another class?
I give up, I do not know what request to formulate in the search engine.
The bottom line is, I'm playing with writing a bot for a telegram, but there was one problem when debugging, since it takes a long time to constantly upload to a server and test the written code with hooks.
I call the methods one by one and check the functionality, but I noticed that the repository is not injected, more precisely, when debugging, its value is Null,
although the method call in the source class is injected without problems:
Who can tell me what features of interaction with this tool I don’t understand?
Answer the question
In order to leave comments, you need to log in
TelegramController ts = new TelegramController();
but I noticed that the repository is not injected, more precisely, when debugging, its value is Null
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question