Cannot find bean with qualifier

Answered

Using Intellij Ultimate, 2018.1, with a Spring boot app. I am getting `Cannot find bean with qualifier {...}` for this code:

@Inject
@Named("serviceClient.clientName")

The name here refers to a property which is used (afaik) at runtime to create a Jersey client with this name. So Intellij is correct that there is no bean in the code base with this qualifier, but it is not a useful error for me to see repeatedly.

Is there a way to disable just this instance of the inspection?

Or, to configure Intellij so that it is aware of the properties file and "understands" how the qualifier is resolved?

Or, to globally downgrade this inspection to a yellow warning?

 

0

Please sign in to leave a comment.