Jetty任务调度器,新增

v1.3
xueli.xue 9 years ago
parent 1df79bc940
commit d81b0749a6

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

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

Loading…
Cancel
Save