首页>代码>java通过jsoup爬取最代码牛币兑换活动>/spring-boot-jd-jsoup-master/src/main/java/com/simon/jsoup/controller/TestController.java
package com.simon.jsoup.controller;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* @author Simon
*/
@Controller
public class TestController {
@RequestMapping("/crawl")
@ResponseBody
public String crawl(@RequestParam String name, @RequestParam String date, @RequestParam String info, @RequestParam String status) {
if (StringUtils.isEmpty(name)) {
return "最代码未发布最新活动通知!";
}
return "最代码【" + date + "】发布最新活动通知:</br> " + name + "! 活动【" + status + "】";
}
}
最近浏览更多
ma406805131 LV19
2024年6月25日
微信网友_6902352269217792 LV3
2024年3月12日
adminLi LV2
2024年1月10日
yuan666 LV1
2023年12月4日
内心向阳 LV4
2023年11月7日
再曾一碗饭
2023年10月24日
暂无贡献等级
txf123 LV6
2023年9月21日
多加两块钱 LV4
2023年6月12日
GeminiLong LV6
2023年4月27日
fewfsdaf LV4
2023年4月16日

最近下载
