Why my required=false
at Pathvariable
on my controller is not working and always throw me exception that I don't set an parameters into my endpoint?
@GetMapping(path="/{userId}")
public Map<String, String> getCompleteAlgTemp(
@PathVariable(required = false, value = "userId") Long userId,
@ApiIgnore @CookieValue(CookieName.AUTHENTICATION) String token
) throws ErrorException {