使用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>