Learn how to create and expose a custom endpoint.
- [Instructor] There are times, though seldom,…where you wanna build a custom endpoint…for your applications.…While this is very unusual, the fact is that…Spring Boot Actuator supports it out of the box.…Now we're gonna create a very simple example…of what you can do to create your…own actuator endpoint.…While we're simply going to put this into…our existing application, the reality is you…would most likely create this in a starter jar…and include it in all of your applications.…
So tour actuator demo in source main java.…And in our com frankmoley boot essentials directory…we are going to create a new class.…The class that we are gonna create…is called SystemEvalEndpoint.…Now, to our SystemEvalEndpoint,…we need to add a couple annotations.…The first is at component so that Spring…picks it up, and the second is at Endpoint.…Now we need to give it a name.…So we're gonna put an ID, and we are going…to call this system dash details.…
Now, in our class, we are going to create…an embedded class.…So let's go down here a little ways towards the bottom…
AuthorFrank P Moley III
- Creating a Spring Boot application
- Configuring a Spring Boot app
- Leveraging profiles
- Packaging and running Spring Boot web apps
- Building a command-line application
- Using Spring Boot starters: Spring Data, Spring Security, and more
- Extending Spring Boot
- Using Spring Boot Actuator to monitor app health and other metrics
Skill Level Intermediate
What you need to know4m 14s
1. Boot Camp
2. Web Applications with Spring Boot
3. Command-Line Applications with Spring Boot
4. Using Spring Boot Starters
5. Extending Spring Boot
6. Extending Actuator
Next steps3m 1s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.