Using AllArgsConstructor with Spring annotation argument
<p>I have this class... </p>

<pre><code>@RestController
@RequestMapping("message")
@AllArgsConstructor(onConstructor = @__(@Autowired))
public class MessageController {
...
}
</code></pre>

<p>I have the following dependency in my <code>pom.xml</code></p>

<pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
    &lt;artifactId&gt;lombok&lt;/artifactId&gt;
    &lt;version&gt;1.16.10&lt;/version&gt;
    &lt;scope&gt;provided&lt;/scope&gt;
&lt;/dependency&gt;
</code></pre>

<p>The class has two variables that I'm trying to inject via the constructor, and I'm getting this error on the <code>@AllArgsConstructor</code> line. </p>

<pre><code>"__ cannot be resolved to a type"
</code></pre>

<p>Any help is appreciated.</p>