~/talk

Breaking the Magician's Code Diving deeper into Spring Boot internals

Talkat Spring I/O 2019 · 2019-05-16..05-17· [spring, java]
github:mbhave
slides:none on file

Rebuilds a Spring Boot web app by hand: uses SpringApplication.run but not @SpringBootApplication, adds TomcatServletWebServerFactory, registers a DispatcherServlet and @EnableWebMvc, then moves configs into a composed magic application meta-annotation. Replaces hard imports with an import selector reading spring.factories, demonstrates conditional-on-class by adding Undertow and showing the two-factory clash, adds an EnvironmentPostProcessor to load magic.properties (port 9090), and binds a ServerProperties bean via an ImportBeanDefinitionRegistrar — everything runs after those changes.

AI-written summary · about

  1. 0:00Introduction to Spring Boot
  2. 2:16Starting from scratch
  3. 4:41Setting up the web server
  4. 8:58Adding MVC and dispatching
  5. 12:42Component scanning
  6. 15:15Structuring configuration
  7. 18:38Meta-annotations
  8. 22:13Import selectors
  9. 25:50Spring factories
  10. 28:18Conditional configuration
  11. 33:46Externalized properties
  12. 42:31Recap and debugging
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.