SpringFramework allows not to mark RequestParam as required if it has defaultValue. One more reason is the change is to define PathVariable as required value