Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Sinhalese
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
Instructor: All righty, let's go ahead and move in here
and take care of our normal housekeeping,
stopping all apps and closing all windows.
And I'll move into my finder window here,
and I'll move into our dev-spring-boot directory
and our 02-spring-boot-spring-core.
And for this constructor-injection,
I'll simply copy and paste this directory,
and then I'll rename it as 02-component-scanning.
And now I'll simply open this directory here in IntelliJ.
So lemme just move in here to my code,
and I'm gonna create a new package.
And I'll give the package name of rest.
And I'll also create another new package.
And I'll call this common.
And then I'll move my DemoController into my package rest.
Alrighty, so that looks good.
And then I'll also move my Coach and CricketCoach
into the common package.
And then note here, these are all sub packages
of our main springcoredemo application.
So they'll be component scanned automatically for us
using the default component scanning of Spring Boot.
Let's go ahead and run this application.
And, hmm, that's weird,
this error, parse ConfigurationClassParser.
Okay, great.
So I can resolve this by simply doing a rebuild
on the project because I had some old compiled code
from one of the previous projects.
Now let's go ahead and swing over to our web browser
and open up our endpoint localhost:8080/dailyworkout.
And everything loads up for us a-ok.
So our app works because we simply
just moved those sub packages
of our main Spring Boot application.
So this is pretty good.
We're making use
of the default component scanning of Spring Boot.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.