Currently the ApiVersionConfigurer.setVersionRequired(...)
states:
When a
defaultVersion
is also set, this is automatically set tofalse
.
With Spring Boot property support it's pretty easy set version-required
and default-version
. I think it might be better to consider this a configuration error and fail startup early.
Comment From: rstoyanchev
We can indeed flag that if both are explicitly set.