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 full-size 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 full-size slide

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

    View full-size slide

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

    View full-size 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 full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  10. #Java2Days2017 Bulgaria @andrespedes
    @CONFIGURATION
    Bean

    View full-size slide

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

    View full-size slide

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

    View full-size slide

  13. #Java2Days2017 Bulgaria @andrespedes

    View full-size slide

  14. #Java2Days2017 Bulgaria @andrespedes

    View full-size 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 full-size slide

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

    View full-size slide

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

    View full-size slide