Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Mastering Spring Boot

Mastering Spring Boot

Describes how to master the autoconfiguration feature of Spring Boot.

https://github.com/pedes/mastering-spring-boot

Andres Pedes Morales

October 18, 2017
Tweet

More Decks by Andres Pedes Morales

Other Decks in Programming

Transcript

  1. MASTERING SPRING BOOT
    I n 3 S i m p l e S t e p s

    View Slide

  2. Speaker, Java Evangelist,
    JSR-367 Contributor, JCP Member,
    Auth0 Ambassador, DZone MVB,
    Java EE Guardian
    Hello!
    I’m Andrés Céspedes Morales
    Twitter: @andrespedes
    Github: @pedes
    www.andrespedes.com

    View Slide

  3. #Java2Days2017 Bulgaria @andrespedes
    AGENDA
    AutoConfiguration Magic ( Conditionals )
    What & Why Spring Boot
    How to Master it

    View Slide

  4. #Java2Days2017 Bulgaria @andrespedes
    Spring Boot ?
    WHAT & WHY
    1

    View Slide

  5. #Java2Days2017 Bulgaria @andrespedes
    Insights & Metrics
    Actuator
    Configuration based on
    classes, beans & properties
    AutoConfiguration
    CLI Stands for Command
    Line Interface
    Spring CLI
    SPRING BOOT ESSENTIALS
    Wrap-up libraries
    Starters

    View Slide

  6. #Java2Days2017 Bulgaria @andrespedes
    It’s cool
    Top OS Project
    Java-based configuration
    XML-less
    Convention over
    configuration
    Ease to Config
    SPRING BOOT FEATURES
    Simplify project
    development
    Bootstrap

    View Slide

  7. #Java2Days2017 Bulgaria @andrespedes
    How Auto-configuration works under the hood
    UNDERSTAND THE MAGIC
    2

    View Slide

  8. #Java2Days2017 Bulgaria @andrespedes
    @ComponentScan
    @SPRINGBOOTAPPLICATION
    @Configuration @EnableAutoConfiguration

    View Slide

  9. #Java2Days2017 Bulgaria @andrespedes
    @COMPONENTSCAN
    Repository Service
    Controller Configuration
    Component

    View Slide

  10. #Java2Days2017 Bulgaria @andrespedes
    @CONFIGURATION
    Bean

    View Slide

  11. #Java2Days2017 Bulgaria @andrespedes
    @ENABLEAUTOCONFIGURATION
    spring.factories

    View Slide

  12. #Java2Days2017 Bulgaria @andrespedes
    There are three ways
    HOW TO MASTER IT
    3

    View Slide

  13. #Java2Days2017 Bulgaria @andrespedes

    View Slide

  14. #Java2Days2017 Bulgaria @andrespedes

    View Slide

  15. #Java2Days2017 Bulgaria @andrespedes
    Knowledge
    transfer
    Customize and
    build your own
    autoconfig
    Build a project
    and use it in
    production
    PATH TO MASTERY

    View Slide

  16. #Java2Days2017 Bulgaria @andrespedes
    CHECKOUT THE PROJECT
    https://github.com/pedes/mastering-spring-boot

    View Slide

  17. #Java2Days2017 Bulgaria @andrespedes
    Thanks!
    You can find me at: @andrespedes | [email protected] | [email protected]
    Any questions?

    View Slide