Spring中调用某个类中的方法报错空指针-nullpointerexception
在spring中调用某一个类中的方法需要使用@Autowired (自动装配)
不能直接Abc() abc=new Abc();
new 出的对象,无法调用@Autowired进入的spring bean
在spring中调用某一个类中的方法需要使用@Autowired (自动装配)
不能直接Abc() abc=new Abc();
new 出的对象,无法调用@Autowired进入的spring bean