Injection is empty

In the controller injected injection failed to call another controller

Acontroller call in another BController RUN () 
aController 
BControllre bControllr = new new BController (); 
b is called the method Acontroller 

bController.run (); 

it will appear in the blank injection in BController
    
View Code

Summary can not be called unless added into memory controler (static) directly in the controller.

Because when we first started the project, controller already loaded injected into it, when new, reloaded memory, so as to inject null

This is only his own understanding, if there is something wrong, please correct me great God

Guess you like

Origin www.cnblogs.com/xining/p/11235998.html