If you have multiple files with different endpoints such as
@RequestMapping(value="/identity" , method=RequestMethod.GET)
@RequestMapping(value="/mobilities/validate" , method=RequestMethod.POST)
@RequestMapping(value="/upload" , method=RequestMethod.POST)
And in another file(s)
@GetMapping("/*")
@GetMapping("/*/*")
The files being @Controller
If I HTTP GET /identity
how do I know for sure that the endpoint that is going to be used is the /identity
and not /*
?
Is there an order (as in NodeJS where /*
before /identify
would always do the /*
function) or is it EXACT route then if none match, it goes back to the stars ?
似乎它会尽力匹配入站请求。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.