{"id":3444,"date":"2025-12-24T10:01:28","date_gmt":"2025-12-24T15:01:28","guid":{"rendered":"https:\/\/www.mymiller.name\/wordpress\/?p=3444"},"modified":"2025-12-24T10:01:28","modified_gmt":"2025-12-24T15:01:28","slug":"spring-boot-admin-server-with-spring-cloud-discovery","status":"publish","type":"post","link":"https:\/\/www.mymiller.name\/wordpress\/spring_discovery\/spring-boot-admin-server-with-spring-cloud-discovery\/","title":{"rendered":"Spring Boot Admin Server with Spring Cloud Discovery"},"content":{"rendered":"\n<p>Spring Boot Admin Server is a powerful tool for monitoring and managing Spring Boot applications. It provides a centralized dashboard for viewing application health, metrics, and logs. Spring Cloud Discovery, on the other hand, enables service registration and discovery for microservices-based applications. By integrating Spring Boot Admin Server with Spring Cloud Discovery, you can seamlessly monitor and manage your microservices architecture.<\/p>\n\n\n\n<p><strong>Prerequisites<\/strong><\/p>\n\n\n\n<p>Before diving into the integration process, ensure you have the following prerequisites in place:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Java Development Kit (JDK) 11 or higher<\/li>\n\n\n\n<li>Maven or Gradle build tool installed<\/li>\n\n\n\n<li>Basic understanding of Spring Boot and Spring Boot Actuator<\/li>\n\n\n\n<li>Familiarity with Spring Cloud Discovery and its service registry (e.g., Eureka, Consul)<\/li>\n<\/ul>\n\n\n\n<p><strong>Maven Dependencies<\/strong><\/p>\n\n\n\n<p>For Maven users, include the following dependencies in your pom.xml file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;dependency&gt;\n    &lt;groupId&gt;de.codecentric&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-boot-admin-server&lt;\/artifactId&gt;\n    &lt;version&gt;${spring-boot.admin.server.version}&lt;\/version&gt;\n&lt;\/dependency&gt;\n&lt;dependency&gt;\n    &lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\n    &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;\/artifactId&gt;\n    &lt;version&gt;${spring-cloud.version}&lt;\/version&gt;\n&lt;\/dependency&gt;\n<\/code><\/pre>\n\n\n\n<p><strong>Gradle Dependencies<\/strong><\/p>\n\n\n\n<p>For Gradle users, add the following dependencies to your build.gradle file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>dependencies {\n    implementation 'de.codecentric:spring-boot-admin-server'\n    implementation 'org.springframework.cloud:spring-cloud-starter-netflix-eureka-client'\n}\n<\/code><\/pre>\n\n\n\n<p><strong>Configuration Settings<\/strong><\/p>\n\n\n\n<p>In your application.properties or application.yml file, configure the Spring Boot Admin Server and Spring Cloud Discovery settings:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>spring.boot.admin.server.port=8081\nspring.boot.admin.server.context-path=\/admin\neureka.client.register-with-eureka=true\neureka.client.fetch-registry=true\neureka.client.service-url.defaultZone=http:\/\/localhost:8761\/eureka\/\n<\/code><\/pre>\n\n\n\n<p><strong>Adding and Enabling Actuators<\/strong><\/p>\n\n\n\n<p>To expose metrics, health information, and other management endpoints, add the Spring Boot Actuator dependency and enable the desired endpoints in your application.yaml or application.properties file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>management.endpoints.web.exposure.include=*\n<\/code><\/pre>\n\n\n\n<p><strong>Registration with Spring Cloud Discovery<\/strong><\/p>\n\n\n\n<p>When using Spring Cloud Discovery, the client applications will automatically register themselves with the discovery service, eliminating the need for the Spring Boot Admin Client dependency. The Spring Boot Admin Server will then discover these registered applications and display them in the dashboard.<\/p>\n\n\n\n<p><strong>Starting the Applications<\/strong><\/p>\n\n\n\n<p>Start the Spring Boot Admin Server and your microservice applications. The Spring Boot Admin Server will automatically discover the registered microservices and display them in the dashboard.<\/p>\n\n\n\n<p><strong>Accessing the Spring Boot Admin Server<\/strong><\/p>\n\n\n\n<p>Access the Spring Boot Admin Server at http:\/\/localhost:8081\/admin using your preferred web browser. You will be prompted to log in using the default credentials (username: admin, password: admin).<\/p>\n\n\n\n<p>Once logged in, you will see the Spring Boot Admin dashboard, providing a comprehensive overview of your microservices architecture. You can monitor application health, metrics, perform actions, and view logs.<\/p>\n\n\n\n<p>This integration empowers you to effectively manage and monitor your Spring Boot microservices using Spring Boot Admin Server and Spring Cloud Discovery, ensuring the health and performance of your microservices ecosystem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Spring Boot Admin Server is a powerful tool for monitoring and managing Spring Boot applications. It provides a centralized dashboard for viewing application health, metrics, and logs. Spring Cloud Discovery, on the other hand, enables service registration and discovery for microservices-based applications. By integrating Spring Boot Admin Server with Spring Cloud Discovery, you can seamlessly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3445,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[432],"tags":[319],"series":[397],"class_list":["post-3444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-spring_discovery","tag-spring","series-spring"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/manhattan-3866140_640.jpg?fit=640%2C427&ssl=1","jetpack-related-posts":[{"id":3438,"url":"https:\/\/www.mymiller.name\/wordpress\/spring\/architecting-with-spring-and-spring-cloud\/","url_meta":{"origin":3444,"position":0},"title":"Architecting with Spring and Spring Cloud","author":"Jeffery Miller","date":"December 24, 2025","format":false,"excerpt":"Building a Multi-Service Architecture with Spring 3.1.x and Spring Cloud: Unlocking the Power of Microservices In the ever-evolving landscape of software development, microservices have emerged as a powerful architectural paradigm, enabling organizations to build scalable, resilient, and agile applications. Spring, a widely adopted Java framework, provides a comprehensive suite of\u2026","rel":"","context":"In &quot;Spring&quot;","block_context":{"text":"Spring","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/field-5236879_640.jpg?fit=640%2C360&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/field-5236879_640.jpg?fit=640%2C360&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/field-5236879_640.jpg?fit=640%2C360&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3754,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_discovery\/conquering-distance-federated-service-discovery-with-spring-cloud-and-consul\/","url_meta":{"origin":3444,"position":1},"title":"Conquering Distance: Federated Service Discovery with Spring Cloud and Consul","author":"Jeffery Miller","date":"December 23, 2025","format":false,"excerpt":"Microservices excel at breaking down monolithic applications into smaller, manageable units. But as your system expands across multiple data centers or cloud providers, a new challenge emerges: how do services discover each other across these geographical boundaries? Traditional service discovery, with a single registry, can struggle with latency and fault\u2026","rel":"","context":"In &quot;Spring Discovery&quot;","block_context":{"text":"Spring Discovery","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_discovery\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/10\/network-6564511_1280-jpg.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/10\/network-6564511_1280-jpg.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/10\/network-6564511_1280-jpg.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/10\/network-6564511_1280-jpg.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/10\/network-6564511_1280-jpg.avif 3x"},"classes":[]},{"id":3441,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_discovery\/spring-cloud-gateway-with-spring-cloud-discovery\/","url_meta":{"origin":3444,"position":2},"title":"Spring Cloud Gateway with Spring Cloud Discovery","author":"Jeffery Miller","date":"December 24, 2025","format":false,"excerpt":"Spring Cloud Gateway and Spring Cloud Discovery are powerful tools for building microservices architectures. Spring Cloud Gateway acts as an API gateway, routing requests to the appropriate microservices. Spring Cloud Discovery provides a registry for microservices, enabling dynamic service discovery and load balancing. In this comprehensive guide, we'll delve into\u2026","rel":"","context":"In &quot;Spring Discovery&quot;","block_context":{"text":"Spring Discovery","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_discovery\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/trees-2900064_640.jpg?fit=640%2C427&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/trees-2900064_640.jpg?fit=640%2C427&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2023\/11\/trees-2900064_640.jpg?fit=640%2C427&ssl=1&resize=525%2C300 1.5x"},"classes":[]},{"id":3663,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_discovery\/monitoring-microservices-health-with-spring-discovery-client-and-actuator\/","url_meta":{"origin":3444,"position":3},"title":"Monitoring Microservices Health with Spring Discovery Client and Actuator","author":"Jeffery Miller","date":"December 24, 2025","format":false,"excerpt":"In the world of microservices, where applications are decomposed into smaller, independent services, maintaining visibility into the health of each service is crucial. Spring Boot provides a powerful combination of the Spring Discovery Client and Actuator to simplify this task. In this blog post, we\u2019ll walk through building a Spring\u2026","rel":"","context":"In &quot;Spring Discovery&quot;","block_context":{"text":"Spring Discovery","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_discovery\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/08\/checklist-2077020_1280-jpg.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/08\/checklist-2077020_1280-jpg.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/08\/checklist-2077020_1280-jpg.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/08\/checklist-2077020_1280-jpg.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/08\/checklist-2077020_1280-jpg.avif 3x"},"classes":[]},{"id":3668,"url":"https:\/\/www.mymiller.name\/wordpress\/spring_discovery\/monitoring-microservices-health-with-spring-discovery-client-and-actuator-2\/","url_meta":{"origin":3444,"position":4},"title":"Monitoring Microservices Health with Spring Discovery Client and Actuator","author":"Jeffery Miller","date":"April 20, 2026","format":false,"excerpt":"In the world of microservices, where applications are decomposed into smaller, independent services, maintaining visibility into the health of each service is crucial. Spring Boot provides a powerful combination of the Spring Discovery Client and Actuator to simplify this task. In this blog post, we\u2019ll walk through building a Spring\u2026","rel":"","context":"In &quot;Spring Discovery&quot;","block_context":{"text":"Spring Discovery","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring_discovery\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/09\/doctors-office-2610509_1280-jpg.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/09\/doctors-office-2610509_1280-jpg.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/09\/doctors-office-2610509_1280-jpg.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/09\/doctors-office-2610509_1280-jpg.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2024\/09\/doctors-office-2610509_1280-jpg.avif 3x"},"classes":[]},{"id":3828,"url":"https:\/\/www.mymiller.name\/wordpress\/spring-gateway\/load-balancing-your-microservices-configuring-spring-cloud-gateway-with-spring-discovery-server\/","url_meta":{"origin":3444,"position":5},"title":"Load Balancing Your Microservices: Configuring Spring Cloud Gateway with Spring Discovery Server","author":"Jeffery Miller","date":"December 24, 2025","format":false,"excerpt":"In a microservices architecture, ensuring high availability and distributing traffic evenly across multiple instances of a service is paramount. Spring Cloud Gateway, when integrated with a Spring Discovery Server (like Netflix Eureka, Consul, or Spring Cloud Service Registry), provides a powerful and straightforward way to achieve client-side load balancing without\u2026","rel":"","context":"In &quot;Spring Gateway&quot;","block_context":{"text":"Spring Gateway","link":"https:\/\/www.mymiller.name\/wordpress\/category\/spring-gateway\/"},"img":{"alt_text":"","src":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/meditation-3814069_1280.avif","width":350,"height":200,"srcset":"https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/meditation-3814069_1280.avif 1x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/meditation-3814069_1280.avif 1.5x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/meditation-3814069_1280.avif 2x, https:\/\/www.mymiller.name\/wordpress\/wp-content\/uploads\/2025\/04\/meditation-3814069_1280.avif 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/3444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/comments?post=3444"}],"version-history":[{"count":1,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/3444\/revisions"}],"predecessor-version":[{"id":3446,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/posts\/3444\/revisions\/3446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/media\/3445"}],"wp:attachment":[{"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/media?parent=3444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/categories?post=3444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/tags?post=3444"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/www.mymiller.name\/wordpress\/wp-json\/wp\/v2\/series?post=3444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}