<dependency>
    <groupId>com.hazelcast</groupId>
    <artifactId>hazelcast</artifactId>
</dependency>
@Configuration
@EnableAutoConfiguration
@EnableAdminServer
public class SpringBootAdminApplication {
    @Bean
    public Config hazelcastConfig() {
        return new Config().setProperty("hazelcast.jmx", "true")
                .addMapConfig(new MapConfig("spring-boot-admin-application-store")
                    .setBackupCount(1)
                    .setEvictionPolicy(EvictionPolicy.NONE))
                .addListConfig(new ListConfig("spring-boot-admin-event-store")
                    .setBackupCount(1)
                    .setMaxSize(1000));
    }

    public static void main(String[] args) {
        SpringApplication.run(SpringBootAdminApplication.class, args);
    }
}

Table 4. Hazelcast configuration options

Property name Description Default value
spring.boot.admin.hazelcast.enabled Enables the Hazelcast support true
spring.boot.admin.hazelcast.application-store Name of the Hazelcast-map to store the applications "spring-boot-admin-application-store"
spring.boot.admin.hazelcast.event-store Name of the Hazelcast-list to store the events "spring-boot-admin-event-store"

results matching ""

    No results matching ""