使用jsp直接执行定时任务

Kent_Sun 23 0 0

使用jsp直接执行定时任务service

<%@ page import="com.leasing.emogo.framework.util.ApplicationContextUtils" %>
<%@ page import="job.dsc.GetInfoByAssetPackageJob" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String context1 = request.getContextPath();
    GetInfoByAssetPackageJob job = (GetInfoByAssetPackageJob) ApplicationContextUtils.getBean("getInfoByAssetPackageJob");
    job.execute(context1);
%>
<html>
<head>
    <title>Title</title>
</head>
<body>
</body>
</html>
预览图
收藏
评论区