Spring Boot Whitelabel error page | Easy Solution

Spring Boot Whitelabel error page | Easy Solution


Spring Boot Whitelabel error page | Easy Solution

This video explain one of the easiest way to tackle whitelabel error page in springboot.

One of the best book for Interview Questions
Top 1000 Java Interview Questions \u0026 Answers: Includes Spring, Hibernate, Microservices, GIT, Maven, JSP, AWS, Cloud Computing @ https://amzn.to/32zFihe

📌 Do Subscribe for all Updates.

Telegram : Drunken Engineer
https://t.me/DrunkenEngineer

You can follow us on Facebook :
https://www.facebook.com/DrunkenEngin…

Feel free share your Interview Experience with us @ [email protected]


Content

0.399 -> hello guys good morning so today i'm
2.72 -> going to
3.36 -> explain one of the interview questions
7.759 -> uh it is like one of the most commonly
10.639 -> encountered
11.679 -> exception or error while we are trying
14.4 -> to build
15.519 -> a springboard application from the
17.199 -> scratch so i have one springboard
19.279 -> application
20 -> or forget about the naming connection
22.32 -> this was for one of the
24 -> interpretation that i have attended with
26.24 -> the mobiquity
27.279 -> so i have one main
34.38 -> [Music]
43.2 -> and this was the service that is getting
45.12 -> injected uh forget about the logic
47.36 -> uh this was for the entire equation that
49.2 -> i have written
50.559 -> so now let me run this application
56.079 -> run and see so
59.44 -> the reason for explaining this question
62.48 -> is
63.359 -> when i have attended one of the
65.04 -> interviews
66.799 -> three years back and i was asked to
99.04 -> so if you know how to resolve this you
100.96 -> can skip this video
102.88 -> so the easiest way to
106.56 -> resolve this issue is using
110.72 -> what you want me to use okay let's
112.84 -> choose
121.439 -> using component scan
124.719 -> so basically why this issue happens is
127.84 -> if you see the main application
129.36 -> uh package structure this is below the
131.68 -> controller so
133.44 -> the internet application will not be
136.08 -> able to scan
137.36 -> anything about its package anything uh
140.84 -> yeah anything below
142.72 -> it can uh so like it will resolve but it
146.72 -> will not be able to read anything about
148.56 -> so here comes the direct component scan
151.28 -> for our rescue
152.56 -> now let me run i have to restart it as i
156.08 -> am not
157.28 -> uh having the repetition of devtools so
161.04 -> okay it got restarted let me hit this
163.92 -> service again
165.519 -> yes it got result whatever stream we
168.16 -> passed
168.879 -> it it's coming back now let's see
171.76 -> without component scan
173.76 -> how can we resolve this issue or remove
178.319 -> okay so to resolve that issue
183.12 -> now uh just okay
186.4 -> from here we can just copy this we need
189.519 -> to restructure the package
192.8 -> refactor vlan
199.36 -> okay so now if you see it is the
202.319 -> controller package is below the main
203.92 -> application
205.12 -> so okay now let's stop and rerun our
210.84 -> application
213.76 -> okay so if you rephrase this
217.28 -> so i guess again we are getting you will
220.319 -> draw
221.599 -> so these are the two ways like two easy
223.92 -> ways with which we can resolve
226.72 -> the white label error page issue
230.4 -> yeah that's it from this video if you
233.2 -> like the video you can
237.84 -> press the like button and thank you for
240 -> watching
240.879 -> thanks for your time

Source: https://www.youtube.com/watch?v=LJ9hZYC5RSw