Annotation Type EnableManagement


@Retention(CLASS) @Target(TYPE) public @interface EnableManagement

Builds the management endpoints into the server: health, metrics, the Prometheus view, scheduled jobs and managed beans, under /manage.

@EnableManagement
@Configuration
public class Settings { }

THIS IS A BUILD-TIME SWITCH. Without it -- or cn1.management.enabled=true in application.properties or a profile's file -- the entry point never names the endpoints and the translator leaves their code out of the binary, so a packaged server has no /manage to find, whatever its profile. The development run always has them.

With it, the endpoints are on unless cn1.management.enabled=false turns them off at start-up, and outside a development profile they refuse to start without cn1.management.token, which belongs in the environment rather than in source.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Where the endpoints are served; cn1.management.path.
  • Element Details

    • path

      String path
      Where the endpoints are served; cn1.management.path. Empty means /manage.
      Default:
      ""