Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,290 --> 00:00:02,850
Instructor: All righty, let's go ahead and move in here
2
00:00:02,850 --> 00:00:04,440
and take care of our normal housekeeping,
3
00:00:04,440 --> 00:00:06,693
stopping all apps and closing all windows.
4
00:00:15,630 --> 00:00:18,750
And I'll move into my finder window here,
5
00:00:18,750 --> 00:00:21,580
and I'll move into our dev-spring-boot directory
6
00:00:23,010 --> 00:00:25,653
and our 02-spring-boot-spring-core.
7
00:00:26,880 --> 00:00:28,590
And for this constructor-injection,
8
00:00:28,590 --> 00:00:31,323
I'll simply copy and paste this directory,
9
00:00:32,880 --> 00:00:37,233
and then I'll rename it as 02-component-scanning.
10
00:00:45,660 --> 00:00:49,173
And now I'll simply open this directory here in IntelliJ.
11
00:01:08,130 --> 00:01:10,980
So lemme just move in here to my code,
12
00:01:10,980 --> 00:01:12,933
and I'm gonna create a new package.
13
00:01:24,840 --> 00:01:27,333
And I'll give the package name of rest.
14
00:01:33,515 --> 00:01:36,932
And I'll also create another new package.
15
00:01:42,330 --> 00:01:43,953
And I'll call this common.
16
00:01:51,450 --> 00:01:54,873
And then I'll move my DemoController into my package rest.
17
00:02:12,364 --> 00:02:13,410
Alrighty, so that looks good.
18
00:02:13,410 --> 00:02:16,350
And then I'll also move my Coach and CricketCoach
19
00:02:16,350 --> 00:02:18,753
into the common package.
20
00:02:29,790 --> 00:02:31,830
And then note here, these are all sub packages
21
00:02:31,830 --> 00:02:35,460
of our main springcoredemo application.
22
00:02:35,460 --> 00:02:38,940
So they'll be component scanned automatically for us
23
00:02:38,940 --> 00:02:41,540
using the default component scanning of Spring Boot.
24
00:02:43,710 --> 00:02:45,710
Let's go ahead and run this application.
25
00:02:51,810 --> 00:02:54,120
And, hmm, that's weird,
26
00:02:54,120 --> 00:02:58,833
this error, parse ConfigurationClassParser.
27
00:03:00,690 --> 00:03:01,523
Okay, great.
28
00:03:01,523 --> 00:03:04,020
So I can resolve this by simply doing a rebuild
29
00:03:04,020 --> 00:03:06,810
on the project because I had some old compiled code
30
00:03:06,810 --> 00:03:08,523
from one of the previous projects.
31
00:03:27,750 --> 00:03:29,730
Now let's go ahead and swing over to our web browser
32
00:03:29,730 --> 00:03:33,183
and open up our endpoint localhost:8080/dailyworkout.
33
00:03:35,040 --> 00:03:36,990
And everything loads up for us a-ok.
34
00:03:36,990 --> 00:03:39,722
So our app works because we simply
35
00:03:39,722 --> 00:03:41,550
just moved those sub packages
36
00:03:41,550 --> 00:03:43,683
of our main Spring Boot application.
37
00:03:46,470 --> 00:03:47,400
So this is pretty good.
38
00:03:47,400 --> 00:03:48,551
We're making use
39
00:03:48,551 --> 00:03:50,453
of the default component scanning of Spring Boot.
3063
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.