接上篇
https://blog.csdn.net/Delicious_Life/article/details/106592455
Controller
@GetMapping("/search/{keyword}/{pageNo}/{pageSize}")
public List<Map<String,Object>> search(@PathVariable("keyword") String keyword,
@PathVariable("pageNo") int pageNo,
@PathVariable("pageSize") int pageSize) throws IOException{
return contentService.searchPageHighlightBuilder(keyword,pageNo,pageSize);
}
Service