cn.hutool
hutool-all
4.3.2
@Controller
public class UploadController {
@RequestMapping("/{page}")
public String showPage(@PathVariable String page) {
return page;
}
@GetMapping("/posthttp")
public String postparam(String param,Model model) {
if (param.equals("")) {
Person single = new Person("aa", 11);
model.addAttribute("singlePerson", single);
model.addAttribute("postcontent", "URL沒(méi)有數(shù)據(jù)");
return "person";
} else {
Person single = new Person("aa", 11);
model.addAttribute("singlePerson", single);
// System.out.println("這是提交的參數(shù):"+param);
HttpRequest httpRequest = HttpRequest.get(param);
HttpResponse execute = httpRequest.execute();
// System.out.println("這是結(jié)果"+execute.body());
model.addAttribute("postcontent", execute.toString());
return "person";
}
成都創(chuàng)新互聯(lián)公司專(zhuān)業(yè)為企業(yè)提供昂昂溪網(wǎng)站建設(shè)、昂昂溪做網(wǎng)站、昂昂溪網(wǎng)站設(shè)計(jì)、昂昂溪網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁(yè)設(shè)計(jì)與制作、昂昂溪企業(yè)網(wǎng)站模板建站服務(wù),十余年昂昂溪做網(wǎng)站經(jīng)驗(yàn),不只是建網(wǎng)站,更提供有價(jià)值的思路和整體網(wǎng)絡(luò)服務(wù)。