我在WooCom的“作为客户购物”插件中包含此代码段。我想调整此部分代码,以便将用户重定向到管理仪表板,而不是查看刚刚完成的命令。
Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jobLauncher' available
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)
at com.process.batch.job.MyBatchJobApplication.main(MyBatchJobApplication.java:54)
虽然实际上不起作用,但类似这样:
<a class="cxsac-button cxsac-button-switch-back" href="<?php echo $admin_order_url; ?>"><?php _e( 'Switch back to and View Order', 'shop-as-customer' ); ?></a>
有什么想法吗?
我尝试过,但是没有用:
<a class="cxsac-button cxsac-button-switch-back" href="<?php echo $admin_dashboard; ?>"><?php _e( 'Switch back to Dashboard', 'shop-as-customer' ); ?></a>
当前代码:
<a class="cxsac-button cxsac-button-switch-back" href="<?php echo $admin_dashboard; ?>"><?php _e( 'Switch back to Dashboard', 'shop-as-customer' ); ?></a>
我尝试的方法无效:
<a class="cxsac-button cxsac-button-switch-back" href="<?php echo $admin_order_url; ?>"><?php _e( 'Switch back to and View Order', 'shop-as-customer' ); ?></a>
结果是用户被重定向到管理仪表板