in the method modified by @ schedule annotation, using automatic injection will report a null pointer
my solution is to get the spring container statically and then use the getBean () method to get it, which is successful. I would like to ask why automatic injection can not be used