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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -