ERROR [,,] 2021-08-10 17:11:13.111 [main] ERROR org.springframework.boot.SpringApplication - Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luckyPullThread' defined in URL [jar:file:/www/campus-api.jar!/BOOT-INF/classes!/com/job/campus/api/service/impl/lucky/LuckyPullThread.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.job.campus.api.service.impl.lucky.LuckyPullThread]: Constructor threw exception; nested exception is java.lang.NullPointerException
原因竟然是因为线程类的目录问题,本来是放在了service/impl/lucky下边,现在移动到scheduler下边就好了。