Spring Boot autowire MBean?
<p>Spring Boot won't autowire a MBean I exported from another web application with:</p>

<pre><code>@Component
@Service
@ManagedResource(objectName = IHiveService.MBEAN_NAME)
public class HiveService implements IHiveService {
    @Autowired(required = true)
    CategoryRepository categoryRepository;

    @Override
    @ManagedOperation
    public String echo(String input) {
        return "you said " + input;
    }
}
</code></pre>

<p>I can see and use the Bean in Oracle Java Mission Control but the other Spring Boot app is not able to autowire the bean. I this I missed an annotation. To autowire the bean I use:</p>

<pre><code>@Controller
@Configuration 
@EnableMBeanExport
public class GathererControls {
   @Autowired
   IHiveService hiveService; // &lt;-- this should be auto wired
</code></pre>

<p>Any ideas?</p>