title: Spring-Boot: Jmx annotation not working in library
body: <p>I have a Spring-Boot application that just have a simple rest controller. On this controller, I added the jmx annotations @ManagedResource and @ManagedOperation and it is working fine. It is correctly exposed in Jmx.
  This application depends on a "global-commons" library to share many basic functionality to all of our modules.</p>
  
  <p>But if I add the same annotations to a class in this library, it is ignored!
  And before you ask, yes the library is imported with the latest change.
  There is no error or warning message in the logs.</p>
  
  <p>I am configuring all my beans using an xml file. Both classes are beans defined in the same file.
  One is a @RestController. The other one is a simple utility class.</p>
  
  <p>Any idea?</p>