它无法在两个 URL 上运行
@GetMapping(value= {"/durationtrend/{moduleId}","/durationtrend/{moduleId}/{records}"},produces=MediaType.APPLICATION_JSON_VALUE)
public List<ExecutionDurationResource> getExecutionDurationByModuleId(@PathVariable("moduleId") Integer moduleId,@PathVariable("records") Integer records) {
return executionDurationService.getExecutionDuration(moduleId,records);
}
http://localhost:8080/seleniumexecutiontrending/reports/durationtrend/427 --> 它不调用。 http://localhost:8080/seleniumexecutiontrending/reports/durationtrend/427/7-- >它执行。
我想以相同的方法执行两者