我使用spring 4.1.2和quartz 2.2.3并且下面代码中的业务抛出了nullpointerexception。 interfacePedidoBusiness始终为null。虽然声音有许多解决方案,但它们都不适用于我。你能给我一些建议吗?
public class PedidoPagoJob implements Job
{
@Autowired
private InterfacePedidoBusiness interfacePedidoBusiness;
@Override
public void execute(JobExecutionContext context) throws JobExecutionException
{
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
try
{
List<Pedido> pedidos = interfacePedidoBusiness.buscarPedidoPorStatus(Short.parseShort("3"));