我的rest控制器获取为@SearchSpecs Specification规范,我尝试在服务中将此映射到Specification以在存储库中使用它。您有任何想法怎么做吗?
控制器:
fill_between
服务:
@GetMapping("/")
public Page<DTO> findAll(@SearchSpec Specification<DTO> specs,
@RequestParam(defaultValue = "0") Integer pageNo,
@RequestParam(defaultValue = "10") Integer pageSize,
@RequestParam(defaultValue = "id") String sortBy) {
return service.findAll(pageNo, pageSize, sortBy, specs);