spring boot - What is the best way to @Conditional on the inclusion of the actuator feature? -


i'd make of our auto configurations classes conditional on presence of springboot actuator feature on classpath.

against class should write @conditionalonclass annotation? possible candidates are:

  • org.springframework.boot.actuate.autoconfigure.endpointautoconfiguration
  • org.springframework.boot.actuate.endpoint.endpoint

it doesn't matter, 1 choose, long packaged in actuator jar (which case both of classes mentioned).


Comments