java - jaxrs variable @Path -
i have method annotated jax-rs this
@post @path("/somepath") public response testpost(...)
i use instead of "/somepath" java string constant (retrieved configuration). possible?
i know can @path({somepath}) , use @pathparam replace that's different use case caller passes dynamic param.
in java, annotation parameters must compile-time constants. thus, not able use configuration retrieved values in @path annotation.
Comments
Post a Comment