clean code; 升级依赖版本;

pull/6/head
xuxueli 7 years ago
parent 7a8937ddf4
commit fa1ed59b8d

@ -16,7 +16,7 @@
<dependency>
<groupId>com.jfinal</groupId>
<artifactId>jfinal</artifactId>
<version>2.0</version>
<version>2.2</version>
</dependency>
<!-- slf4j -->

@ -1,18 +1,18 @@
package com.xxl.job.executor.mvc.controller;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@EnableAutoConfiguration
public class IndexController {
@RequestMapping("/")
@ResponseBody
String index() {
return "xxl job executor running.";
}
}
//package com.xxl.job.executor.mvc.controller;
//
//import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//@Controller
//@EnableAutoConfiguration
//public class IndexController {
//
// @RequestMapping("/")
// @ResponseBody
// String index() {
// return "xxl job executor running.";
// }
//
//}

@ -4,7 +4,7 @@ import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import com.xxl.job.core.log.XxlJobLogger;
import org.springframework.stereotype.Service;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
@ -13,15 +13,15 @@ import java.util.concurrent.TimeUnit;
* HandlerDemoBean
*
*
* 1 IJobHandler
* 2Spring @Service
* 3@JobHandler valueJobKey;JobKey;
* 1com.xxl.job.core.handler.IJobHandlerJava
* 2SpringBean@Component
* 3@JobHandler(value="自定义jobhandler名称")valueJobHandlerJobHandler
* 4 "XxlJobLogger.log"
*
* @author xuxueli 2015-12-19 19:43:36
*/
@JobHandler(value="demoJobHandler")
@Service
@Component
public class DemoJobHandler extends IJobHandler {
@Override

Loading…
Cancel
Save