HTTP请求是POST请求,xxl-job参数是GET,为什么要执行
HTTP request is a POST request, xxl-job parameter is GET, why execute
请提供一些实现方法。
xxl-job log:
----------- xxl-job job execute start -----------
Param:url: http://172.18.0.155:8888/test
method: GET
data: content
----------- xxl-job job execute end(finish) -----------
----------- ReturnT:ReturnT [code=200, msg=null, content=null]
----------- xxl-job job callback finish.
我的代码只打印日志
@Slf4j
@RestController
public class TestController {
@PostMapping("/test")
public void test1(){
log.info("======================================test xxl-job");
}
}
这是 "httpJobHandler" 中的隐藏错误:"setDoOutput(true)" 导致 "setRequestMethod("GET");"无效强制赋值给 "POST".
此问题已修复并推送到 Github Master 分支。
https://github.com/xuxueli/xxl-job/commit/17b416ca070d13ee567a4963592873eea80f3ef1
请提供一些实现方法。
xxl-job log:
----------- xxl-job job execute start -----------
Param:url: http://172.18.0.155:8888/test
method: GET
data: content
----------- xxl-job job execute end(finish) -----------
----------- ReturnT:ReturnT [code=200, msg=null, content=null]
----------- xxl-job job callback finish.
我的代码只打印日志
@Slf4j
@RestController
public class TestController {
@PostMapping("/test")
public void test1(){
log.info("======================================test xxl-job");
}
}
这是 "httpJobHandler" 中的隐藏错误:"setDoOutput(true)" 导致 "setRequestMethod("GET");"无效强制赋值给 "POST".
此问题已修复并推送到 Github Master 分支。
https://github.com/xuxueli/xxl-job/commit/17b416ca070d13ee567a4963592873eea80f3ef1