Jetty任务调度器,新增

master
xueli.xue 9 years ago
parent 1df79bc940
commit d81b0749a6
  1. 1
      xxl-job-client-demo/src/main/resources/applicationcontext-xxl-job.xml
  2. 6
      xxl-job-client-demo/src/main/webapp/WEB-INF/web.xml

@ -11,6 +11,7 @@
<context:component-scan base-package="com.xxl.job.service" />
<!-- Jetty任务执行器 -->
<bean id="xxlJobJettyServer" class="com.xxl.job.client.netcom.jetty.XxlJobJettyServer" init-method="start">
<property name="port" value="9999" />
</bean>

@ -20,7 +20,8 @@
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<!-- Xxl Job Servlet -->
<!-- Servlet任务执行器,推荐使用Jetty任务执行器 -->
<!--
<servlet>
<servlet-name>XxlJobServlet</servlet-name>
<servlet-class>com.xxl.job.client.netcom.servlet.XxlJobServlet</servlet-class>
@ -29,7 +30,8 @@
<servlet-mapping>
<servlet-name>XxlJobServlet</servlet-name>
<url-pattern>/xxlJobServlet</url-pattern>
</servlet-mapping>
</servlet-mapping>
-->
<welcome-file-list>
<welcome-file>index.html</welcome-file>

Loading…
Cancel
Save