用石英自动装配会产生无效的感觉

时间:2017-04-03 02:42:47

标签: spring quartz

我使用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"));

0 个答案:

没有答案