Join Slack
Communities
Powered by
Anyone knows why `@RequestParam("size", required =...
# spring
c
chintanshah
02/05/2018, 7:33 AM
Anyone knows why
@RequestParam("size", required = false) size: Int = 5
does not give
size
a default value?
c
Czar
02/05/2018, 7:50 AM
This is a known problem with Spring, to have default value here you have to specify it in the
@RequestParam
annotation itself.
22
Views
Open in Slack
Previous
Next