$ expression in @Client annotation is not resolved when injecting low level http client. #1144
Labels
status: pr submitted
A pull request has been submitted for the issue
type: bug
Something isn't working
Milestone
Expression in Client annotation is not resolved and instead treated in whole as a service id.
Steps to Reproduce
Create a bean and inject http client using an expression in Client annotation. Example:
Expected Behaviour
Expression should be resolved and the resolved value should be used as an URI.
Declarative client like the one below works fine.
Actual Behaviour
Expression is not resolved and it is used as service id instead. This is shown by exception:
Environment Information
Example Application
https://github.com/KrzysztofKowalczyk/micronaut-problems
Test case:
https://github.com/KrzysztofKowalczyk/micronaut-problems/blob/master/src/test/groovy/micronaut/problems/ClientSpec.groovy
Second test is failing
Workaround
The text was updated successfully, but these errors were encountered: