Skip to content

Proposal: apply Kotlin default arguments for @RequestParam#defaultValue #30004

Closed as not planned
@xuanswe

Description

@xuanswe

Similar to @RequestParam#required, which is determined by Kotlin type automatically, I would propose to support Kotlin default arguments for @RequestParam#defaultValue.

For example, @RequestParam(defaultValue = "1") size: Int could be just @RequestParam size: Int = 1.

Metadata

Metadata

Assignees

Labels

status: duplicateA duplicate of another issuetheme: kotlinAn issue related to Kotlin support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions