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

Java modules in practice with Spring Boot

Java modules in practice with Spring Boot

Java Modules have been around for a little while now and most of us know deep inside that we need start doing something with them. Yet most developers are waiting for the momentum to take off. You’ve probably heard the theory a couple of times already, but putting it into practice sounds like mom forcing you to eat your veggies. Actually, I love my veggies, so I’ll gladly help you out here. In this session I will demonstrate how you can start using the power of modules in your own application. A Spring Boot application. Because despite the adoption in libraries is not yet great, you can already perfectly make your own application modular. I will guide you through a step-by-step approach to making your application modular. No magic or module-fu is required to achieve this result. Just everyday technologies we have at our disposal in the Java ecosystem. And as a bonus, it even works with Kotlin….

Avatar for Jaap Coomans

Jaap Coomans

May 16, 2019

Other Decks in Programming

Transcript

  1. @JaapCoomans Jaap Coomans Developer / Software Architect Java since 2002

    Tilburg, The Netherlands Father, husband Boardgame player about:me
  2. JPMS: CURRENT STATE OF AFFAIRS Tool support: good Framework and

    library adoption: low Developer adoption: very low
  3. JPMS: CURRENT STATE OF AFFAIRS Tool support: good Framework and

    library adoption: low Developer adoption: very low What’s holding us back?
  4. BUT

  5. AUTOMATIC MODULES Exports and opens all packages Reads all other

    modules Module name derived from filename
  6. AUTOMATIC MODULES Exports and opens all packages Reads all other

    modules Module name derived from filename Automatic-Module-Name
  7. LESSONS LEARNED It still involves pioneering The logs have the

    answer Test all paths on every step GO BOTTOM UP