1. The problems encountered, ordinary class use
@Autowired
private static ICDahuaService cDahuaService;
cDahuaService is null
2. Solution
Now cDahuaService is not empty
注意:StartServiceCallBack.CDahuaService = cDahuaService;
Where StartServiceCallBack is the class name of the current class