Actuator Uç Noktalarını Etkinleştirme
Actuator uç noktaları ekleyin ve dışarı açın.
Actuator Uç Noktalarını Etkinleştirme, CoddyKit'te ücretsiz bir Spring Boot 4 Microservices & REST APIs dersidir. Bu, 4 dersinin 1. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, Spring Boot 4 Microservices & REST APIs öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. Spring Boot 4 Microservices & REST APIs kursu toplamda 4 dersten oluşur.
Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.
What Actuator Provides
Spring Boot Actuator adds production-ready endpoints that expose the internal state of your running app: health, metrics, environment, beans, mappings, and more.
It turns a black-box service into something you can observe and operate without writing custom plumbing.
Adding the Starter
Enable Actuator by adding a single dependency. Auto-configuration registers the endpoints; no extra code is required.
<!-- pom.xml -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>The /actuator Base Path
By default endpoints live under /actuator. Visiting the base path returns a discovery document listing the exposed endpoints and their links.
GET /actuator
# returns links to exposed endpoints: health, info, ...Default Exposure
Out of the box, only a few endpoints are exposed over HTTP — most notably health. Others exist but are hidden until you opt in, which is a safe default for production.
Exposing More Endpoints
Control HTTP exposure with management.endpoints.web.exposure.include. List specific endpoints by id, or use * to expose all (use with care).
management:
endpoints:
web:
exposure:
include: health,info,metrics,envExcluding Endpoints
You can include broadly and then carve out sensitive endpoints with exclude, which takes precedence over include.
management:
endpoints:
web:
exposure:
include: "*"
exclude: env,beans,heapdumpEnabling and Disabling Endpoints
Exposure differs from being enabled. An endpoint can be enabled but not exposed. Toggle availability with management.endpoint.<id>.enabled.
management:
endpoint:
shutdown:
enabled: true # disabled by default
health:
enabled: trueThe Info Endpoint
The info endpoint surfaces arbitrary metadata about your build. Populate it from application.yml or build-time properties like git and build info.
info:
app:
name: orders-service
version: 2.4.0
management:
info:
env:
enabled: trueChanging the Base Path
You can relocate endpoints by changing management.endpoints.web.base-path, for example to /manage, to fit gateway or routing conventions.
management:
endpoints:
web:
base-path: /manage
# now: /manage/healthA Separate Management Port
For isolation, run Actuator on its own port with management.server.port. This lets you keep operational endpoints off the public application port entirely.
management:
server:
port: 8081Operational Mindset
Actuator is the foundation of observability. Expose what operators need, hide what attackers could abuse, and treat the management surface as part of your security perimeter.
Quick Check
Test your understanding of exposure.
Recap
Actuator makes your app observable.
- Add
spring-boot-starter-actuator - Endpoints live under
/actuator; onlyhealthis exposed by default - Control HTTP exposure with
exposure.include/exclude - Enable/disable endpoints individually
- Optionally use a separate management port
Sıkça Sorulan Sorular
“Actuator Uç Noktalarını Etkinleştirme” dersi ücretsiz mi?
Evet — “Actuator Uç Noktalarını Etkinleştirme” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve Spring Boot 4 Microservices & REST APIs kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. Spring Boot 4 Microservices & REST APIs kursu toplamda 4 dersten oluşur.
“Actuator Uç Noktalarını Etkinleştirme” dersinde ne öğreneceğim?
Actuator uç noktaları ekleyin ve dışarı açın. Spring Boot 4 Microservices & REST APIs ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.
Spring Boot 4 Microservices & REST APIs öğrenmeye başlamak için deneyim gerekli mi?
Önceden deneyim gerekmez. CoddyKit'te Spring Boot 4 Microservices & REST APIs, başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 1. dersidir.
“Actuator Uç Noktalarını Etkinleştirme” dersi ne kadar sürer?
Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.
Bu Spring Boot 4 Microservices & REST APIs dersinde kod yazıp çalıştırabilir miyim?
Evet. Her Spring Boot 4 Microservices & REST APIs dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.
Bu kursun tüm dersleri
- Actuator Uç Noktalarını Etkinleştirme
- Sağlık Göstergeleri
- Micrometer ile Özel Ölçümler
- Actuator Uç Noktalarını Güvenceye Alma