0

It always say that The value for annotation attribute WebServiceClient.wsdlLocation must be a constant expression.

But i need to load value from properties file as on QA/Prod/SIT, the URL is different.

How can i manage same in annotation?

enter image description here

Amar Dev
  • 1,360
  • 2
  • 18
  • 38
fatherazrael
  • 5,511
  • 16
  • 71
  • 155
  • Does this answer your question? [Get rid of "The value for annotation attribute must be a constant expression" message](https://stackoverflow.com/questions/16509065/get-rid-of-the-value-for-annotation-attribute-must-be-a-constant-expression-me) – Amongalen May 29 '20 at 11:03
  • Actually that one is a duplicate of this one: https://stackoverflow.com/questions/2065937/how-to-supply-value-to-an-annotation-from-a-constant-java – Amongalen May 29 '20 at 11:08
  • 2
    You can’t. But the framework surely provides alternatives to annotation based configuration. – Holger May 29 '20 at 13:34

0 Answers0