spring-framework / org.springframework.web.bind.annotation / RequestParam / defaultValue

defaultValue

val defaultValue: String

The default value to use as a fallback when the request parameter is not provided or has an empty value.

Supplying a default value implicitly sets #required to false.