Home > Back-end >  The question of automatic injection
The question of automatic injection

Time:01-21

I want to write a simple test class by the method in the call interface, but the interface at the time of automatic injection is a null pointer exception, is this why ah below:

It's fake service layer,


Use the automatic injection,


this is test method

configuration file
The debug of the service is empty, in normal, the springmvc project is also such a call the next layer of methods to achieve, but not null pointer exception, I this is why? Strives for the interpretation of the
  • Related