Extending Spring Boot for Cloud Deployments
summary
Shows how to build a real Spring Boot starter that auto-configures a Google Translate client: creates a Translate template class, an AutoConfiguration that registers beans, a spring.factories entry, and a @ConfigurationProperties class for projectId. Adds conditional-on checks and conditional-on-missing-bean so apps can override, and includes an annotation processor to generate IDE metadata. Demo app pulls the starter, sets project ID, calls template.translate and it works; source and example live at github.com/saturnism/spring-boot-starter-example.
AI-written summary · about
chapters (11)
- 0:00Start
- 7:22Dependencies
- 8:38Create a Auto-Configuration
- 14:26External Configuration
- 15:08Configuration Properties
- 16:10Enable Configuration Properties
- 20:43Translator Starter
- 23:15Clean Install
- 24:06The Project Id
- 31:23Test against the Resources in the Cloud
- 32:48Recap
related talks
33mQuickly Build Spring Boot Applications to Consume Public Cloud Services
46mSpring Boot under the hood
01h 34mBoot yourself, Spring is coming
01h 46mIt's a kind of magic: under the covers of Spring Boot
47m'Bootiful' Applications with Spring Boot
01h 02mHand-made Spring Boot Starter
47mDemystifying Spring Boot Magic
51mGoogle Cloud Native with Spring Boot
