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

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

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.
@viktorkhoroshko4489
@viktorkhoroshko4489 6 жыл бұрын
Thanks guys, great job!
@fates6922
@fates6922 3 жыл бұрын
Great talk, made what was going on behind the scenes really clear to me.
@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.
@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
@beatricedianatoma8387
@beatricedianatoma8387 Жыл бұрын
Thank you for the insights! Do you guys have a link for the repo?
@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.
@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
@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.
@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
@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.
@josemdz6428
@josemdz6428 5 жыл бұрын
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 М.
Bootiful Testing
1:18:16
SpringDeveloper
Рет қаралды 28 М.
🌊Насколько Глубокий Океан ? #shorts
00:42
Пробую самое сладкое вещество во Вселенной
00:41
Can You Draw A PERFECTLY Dotted Line?
00:55
Stokes Twins
Рет қаралды 97 МЛН
Building Robust and Resilient Apps Using Spring Boot and Resilience4j
52:02
Guide to "Reactive" for Spring MVC Developers
1:04:27
SpringDeveloper
Рет қаралды 61 М.
How Fast is Spring?
1:15:25
SpringDeveloper
Рет қаралды 20 М.
What's New in Spring Boot 2.0 - Phillip Webb, Madhura Bhave
1:04:00
SpringDeveloper
Рет қаралды 26 М.
Reactive Spring - Josh Long, Mark Heckler
1:09:39
SpringDeveloper
Рет қаралды 25 М.
Designing, Implementing, and Using Reactive APIs - Ben Hale, Paul Harris
1:10:30
Kubernetes for the Spring Developer - Meaghan Kjelland
20:43
SpringDeveloper
Рет қаралды 25 М.
From Zero to Hero with Spring Boot - Brian Clozel
1:09:19
SpringDeveloper
Рет қаралды 177 М.
10 Ways to Get Super Productive with Spring Boot
56:56
SpringDeveloper
Рет қаралды 39 М.
The Beginner’s Guide To Spring Cloud - Ryan Baxter
1:08:42
SpringDeveloper
Рет қаралды 145 М.
После ввода кода - протирайте панель
0:18
Up Your Brains
Рет қаралды 1 МЛН
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 506 М.
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 23 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,9 МЛН
ИГРОВОВЫЙ НОУТ ASUS ЗА 57 тысяч
25:33
Ремонтяш
Рет қаралды 337 М.