It's a Kind of Magic: Under the Covers of Spring Boot - Brian Clozel, Stéphane Nicoll

  Рет қаралды 54,112

SpringDeveloper

SpringDeveloper

6 жыл бұрын

One of Spring Boot's most powerful features is its auto-configuration. This magic is key to the convention-over-configuration approach that has brought a huge boost in productivity to Java developers. But is it really magic? We don't think so.
In this session we'll take a look under the covers of Spring Boot. You'll learn about auto-configuration and the conditional configuration model that powers it, helping you to be even more productive when writing Spring Boot applications.
Brian Clozel, Spring Team Member, Pivotal
Stéphane Nicoll, Spring Developer, Pivotal
Filmed at SpringOne Platform 2017

Пікірлер: 35
@mason.elmore
@mason.elmore 5 жыл бұрын
Great talk! I recently started working with spring boot professionally and this has demystified a lot of the "magic" that has confused me as a beginner.
@fates6922
@fates6922 3 жыл бұрын
Great talk, made what was going on behind the scenes really clear to me.
@viktorkhoroshko4489
@viktorkhoroshko4489 6 жыл бұрын
Thanks guys, great job!
@shriduttkothari
@shriduttkothari Жыл бұрын
One of the great video on SpringBoot
@itsnaveen007
@itsnaveen007 3 жыл бұрын
Great presentation. Lot of things learn regarding auto configuration.
@dawid7891
@dawid7891 Жыл бұрын
Nice intriduction to Spring Boot under-the-hood topic.
@beatricedianatoma8387
@beatricedianatoma8387 Жыл бұрын
Thank you for the insights! Do you guys have a link for the repo?
@md7zn491
@md7zn491 6 жыл бұрын
How did you add your project as a dependency to your another project? I mean did you package it as a ".jar" file from command line and than add it to your local maven repository or something else?
@celebezz
@celebezz 4 жыл бұрын
mvn clean install adds jar to your local repository (.m2/repository folder) and you can use it as dependency in other pom.xml
@hariprasads6340
@hariprasads6340 6 жыл бұрын
Would like to code along and watch so can you please share the code that you are using in this video?
@hariprasads6340
@hariprasads6340 6 жыл бұрын
Found it.. github.com/snicoll-demos/hello-service-auto-configuration .. In case someone is looking for it
@facub5314
@facub5314 2 жыл бұрын
How can @ConditionalOnClass be called with a class that could not be in the classpath? Should that library be included as optional in the autoconfiguration module? If not I don't see how the class HelloService could not be there.
@garfieldnate
@garfieldnate 6 жыл бұрын
I hate to say it, but it still seems magical.
@joeljbaker
@joeljbaker 5 жыл бұрын
Agreed! Magic on top of magic
@tosho_ait
@tosho_ait 5 жыл бұрын
Ah, the good old spring black box hell....
@huangization
@huangization 5 жыл бұрын
Where is the github repo?
@alihashimov4596
@alihashimov4596 5 жыл бұрын
github.com/snicoll?tab=repositories
@paulfrischknecht3999
@paulfrischknecht3999 3 жыл бұрын
The first question before even starting to watch this talk: Does it need to be so complex that I need to learn all this? If people start believing your framework does magic, you have probably made it do too much...
@mjduigou
@mjduigou 2 жыл бұрын
It is not really explained why all of the conditional behaviour is needed or what the benefit is of using conditional versus explicit. It seems like a significant portion of the conditional stuff could be avoided with a savings in complexity and reduction of magic-ness.
@kennethcarvalho3684
@kennethcarvalho3684 Жыл бұрын
They don't want to give all the info
@vietanhvu48
@vietanhvu48 5 жыл бұрын
@StartFasterWithITunes is best LOL
@ddomingo
@ddomingo 5 жыл бұрын
This would be some much easier to follow if there were some enthusiasm in their voices.
@frostden
@frostden 3 жыл бұрын
I have been bashing my head against refactoring a spring boot project for a week. Finally biting the bullet and digging in to how it works under the hood. The resources for learning this seem absolutely mind numbing. I am so, so bored.
@kennethcarvalho3684
@kennethcarvalho3684 Жыл бұрын
If you explain this at application level it becomes interesting but at framework it would be dry to most listeners
@hardryv3719
@hardryv3719 2 жыл бұрын
I despised this presentation, persistent use of the term 'opinion' where there was none and then on and on about about how useful that is... extremely confusing. The 'behind scenes' reveal was useful, but the 'conversation fluff' was off-putting.
@kotojava
@kotojava 5 жыл бұрын
As developer I want to be focused on logic and not keep in mind spring configuration hell. Tons of this garbage annotations which is conflicting with each other. Now if you want to write hello world application using spring you have to read a lot of documentation or solve a lot of annoying exceptions etc. It's better to do not use it at ALL. Hope any other alternative like google juice will kill it sooner or later.
@argentumcitizen
@argentumcitizen 4 жыл бұрын
spring boot is all about that, convention over configuration. once you learn the basics all the rest is about building business logic
@ITech2005
@ITech2005 4 жыл бұрын
If youre using spring to build a hello world application them you're already doing it wrong. Spring is for professionals willing to put the time in to learn it. Once you do that knowledge and experience will last you a lifetime and place you head and shoulders above most Java Developers. My advice is to learn Spring Core & MVC before all of this other crap.
@celebezz
@celebezz 4 жыл бұрын
That is simply not true. Generate new app from spring initializer website with only "web" dependency, go to the main class with @SpringBootApplication annotation, add annotation "@RestController" on the class, then add method "@GetMapping("/") public String hw() {return "Hello World";}", run the app (for example mvn spring-boot:run), go to localhost:8080 and that's it, "Hello world" app in 1 youtube comment.
@TroenderTass
@TroenderTass 3 жыл бұрын
If your goal is a hello world, why are you even here? And no, by default you get a hello world app running by just using the spring initializer. Well, you might have to actually find out where to print the hello world, but it should not be that hard, since you only have one class with one main. lol
@josemdz6428
@josemdz6428 6 жыл бұрын
Well, this is almost as boring and slow as everything else in Spring.
How to Get Productive with Spring Boot
1:03:56
SpringDeveloper
Рет қаралды 18 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
HAPPY BIRTHDAY @mozabrick 🎉 #cat #funny
00:36
SOFIADELMONSTRO
Рет қаралды 15 МЛН
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 58 МЛН
Guide to "Reactive" for Spring MVC Developers
1:04:27
SpringDeveloper
Рет қаралды 61 М.
From Zero to Hero with Spring Boot - Brian Clozel
1:09:19
SpringDeveloper
Рет қаралды 177 М.
Reactive Spring - Josh Long, Mark Heckler
1:09:39
SpringDeveloper
Рет қаралды 25 М.
The Beginner’s Guide To Spring Cloud - Ryan Baxter
1:08:42
SpringDeveloper
Рет қаралды 145 М.
Kubernetes for the Spring Developer - Meaghan Kjelland
20:43
SpringDeveloper
Рет қаралды 25 М.
Spring Tips: Proxies
27:18
SpringDeveloper
Рет қаралды 3,5 М.
What's New in Spring Boot 2.0 - Phillip Webb, Madhura Bhave
1:04:00
SpringDeveloper
Рет қаралды 26 М.
Spring Tips: Spring Modulith
37:39
SpringDeveloper
Рет қаралды 17 М.
Bootiful Development with Spring Boot and React - Matt Raible
1:07:12
SpringDeveloper
Рет қаралды 80 М.
How Fast is Spring?
1:15:25
SpringDeveloper
Рет қаралды 20 М.
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 382 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 432 М.