1.测试代码的控制层
@GetMapping("getChapterInfo1/{id}/{name}") public R getChapterInfo1(@PathVariable("id") String chapterId,@PathVariable("name") String name) { System.out.println(chapterId); String importSql1 ="select * from t_test"; List
localhost:8001/eduservice/chapter/getChapterInfo1/22/哈哈哈 将要传的参数这样拼接就行
2.相关测试验证
2.1IDEA测试
传参:
localhost:8001/eduservice/chapter/getChapterInfo1/22/哈哈哈
2.2postman测试: