• 大小: 5.23MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-03
  • 语言: 数据库
  • 标签: 分布式  定时任  

资源简介

oracle与mysql有些细微的差距,这里是我自己跑起来的xxlJob oracle版本

资源截图

代码片段和文件信息

package com.xxl.job.admin.controller;

import com.xxl.job.admin.controller.annotation.PermessionLimit;
import com.xxl.job.admin.controller.interceptor.PermissionInterceptor;
import com.xxl.job.admin.core.util.PropertiesUtil;
import com.xxl.job.admin.service.XxlJobService;
import com.xxl.job.core.biz.model.ReturnT;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * index controller
 * @author xuxueli 2015-12-19 16:13:16
 */
@Controller
public class IndexController {

@Resource
private XxlJobService xxlJobService;

@RequestMapping(“/“)
public String index(Model model) {

Mapject> dashboardMap = xxlJobService.dashboardInfo();
model.addAllAttributes(dashboardMap);

return “index“;
}

    @RequestMapping(“/triggerChartDate“)
@ResponseBody
public ReturnTject>> triggerChartDate() {
        ReturnTject>> triggerChartDate = xxlJobService.triggerChartDate();
        return triggerChartDate;
    }

@RequestMapping(“/toLogin“)
@PermessionLimit(limit=false)
public String toLogin(Model model HttpServletRequest request) {
if (PermissionInterceptor.ifLogin(request)) {
return “redirect:/“;
}
return “login“;
}

@RequestMapping(value=“login“ method=RequestMethod.POST)
@ResponseBody
@PermessionLimit(limit=false)
public ReturnT loginDo(HttpServletRequest request HttpServletResponse response String userName String password String ifRemember){
if (!PermissionInterceptor.ifLogin(request)) {
if (StringUtils.isNotBlank(userName) && StringUtils.isNotBlank(password)
&& PropertiesUtil.getString(“xxl.job.login.username“).equals(userName)
&& PropertiesUtil.getString(“xxl.job.login.password“).equals(password)) {
boolean ifRem = false;
if (StringUtils.isNotBlank(ifRemember) && “on“.equals(ifRemember)) {
ifRem = true;
}
PermissionInterceptor.login(response ifRem);
} else {
return new ReturnT(500 “账号或密码错误“);
}
}
return ReturnT.SUCCESS;
}

@RequestMapping(value=“logout“ method=RequestMethod.POST)
@ResponseBody
@PermessionLimit(limit=false)
public ReturnT logout(HttpServletRequest request HttpServletResponse response){
if (PermissionInterceptor.ifLogin(request)) {
PermissionInterceptor.logout(request response);
}
return ReturnT.SUCCESS;
}

@RequestMapping(“/help“)
public String help() {

/*if (!PermissionInterceptor.ifLogin(request)) {
return “redirect:/toLogin“;
}*/

return “help“;
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        115  2017-10-31 12:03  xxl-job-master\.gitattributes

     文件        214  2017-10-31 12:03  xxl-job-master\.github\ISSUE_TEMPLATE

     文件        251  2017-10-31 12:03  xxl-job-master\.github\PULL_REQUEST_TEMPLATE

     文件         95  2017-10-31 12:03  xxl-job-master\.gitignore

     文件        387  2018-07-04 12:09  xxl-job-master\.project

     文件         57  2018-07-04 14:08  xxl-job-master\.settings\org.eclipse.core.resources.prefs

     文件         90  2018-07-04 12:09  xxl-job-master\.settings\org.eclipse.m2e.core.prefs

     文件        159  2017-10-31 12:03  xxl-job-master\.travis.yml

     文件      18935  2018-07-23 16:41  xxl-job-master\doc\db\oracle_xxl_job.sql

     文件       5241  2017-10-31 12:03  xxl-job-master\doc\db\tables_mysql(备份请忽略).sql

     文件     811195  2017-10-31 12:03  xxl-job-master\doc\images\cnblog-首页-每日一博-第一.png

     文件    1639037  2017-10-31 12:03  xxl-job-master\doc\images\cnblog-首页-热门动弹-第一.png

     文件     116954  2017-10-31 12:03  xxl-job-master\doc\images\donate-alipay.jpg

     文件      49192  2017-10-31 12:03  xxl-job-master\doc\images\donate-wechat.png

     文件     133332  2017-10-31 12:03  xxl-job-master\doc\images\gitee-gvp.jpg

     文件     448471  2017-10-31 12:03  xxl-job-master\doc\images\qq群-一个xxl同学进了58.png

     文件      20834  2017-10-31 12:03  xxl-job-master\doc\images\xxl-logo.jpg

     文件      32637  2017-10-31 12:03  xxl-job-master\doc\images\xxl-logo.png

     文件      75661  2017-10-31 12:03  xxl-job-master\doc\XXL-JOB-English-Documentation.md

     文件      73549  2017-10-31 12:03  xxl-job-master\doc\XXL-JOB官方文档.md

     文件     112239  2017-10-31 12:03  xxl-job-master\doc\XXL-JOB架构图.pptx

     文件      35141  2017-10-31 12:03  xxl-job-master\LICENSE

     文件        942  2017-10-31 12:03  xxl-job-master\NOTICE

     文件       5203  2017-10-31 12:03  xxl-job-master\pom.xml

     文件      11016  2017-10-31 12:03  xxl-job-master\README.md

     文件       1308  2018-07-10 16:06  xxl-job-master\xxl-job-admin\.classpath

     文件       1089  2018-07-04 16:16  xxl-job-master\xxl-job-admin\.project

     文件        639  2018-07-04 12:22  xxl-job-master\xxl-job-admin\.settings\.jsdtscope

     文件        261  2018-07-09 16:21  xxl-job-master\xxl-job-admin\.settings\org.eclipse.core.resources.prefs

     文件        430  2018-07-04 12:22  xxl-job-master\xxl-job-admin\.settings\org.eclipse.jdt.core.prefs

............此处省略785个文件信息

评论

共有 条评论