Creation and Explaination of ExceptionHandlerAdvice class, kzitem.info/news/bejne/o4Ntup6gg5ufi3Y
@RaghavSharma-nt3hr
Жыл бұрын
This is one of the best playlist I have found on the internet. Everything explained so clearly with all the resources provided. Thanks for this.
@BingyangWei
Жыл бұрын
Thanks for the kind and encouraging comment!
@SamanSarafraz
9 ай бұрын
Everything is explained straightforwardly, and the video and sound quality are perfect, it is one of the best without any doubt.
@BingyangWei
9 ай бұрын
Thank you for the kind comment! I am glad you like it!
@lynx0074
Жыл бұрын
Thank you so much for creating the amazing video tutorials on Spring Security! Before I stumbled upon your content, my understanding of Spring Security was a complete hodgepodge. Your clear and concise explanations, along with practical examples, have been an absolute game-changer for me. Thanks to your videos, I now have a much better grasp of Spring Security, and I feel much more confident in working with it. Your dedication to sharing knowledge is truly appreciated!
@BingyangWei
Жыл бұрын
Thanks for the nice comment. My pleasure!
@victorz9032
Ай бұрын
thank's a lot!
@BingyangWei
Ай бұрын
You are very welcome!
@RanjeetKumar-kb9ig
7 күн бұрын
For the question asked …getting authorizationdeniedexception but not getting caught in controlleradvice 😢can you please help how to handle that scenario.?
@dav.R7
4 ай бұрын
Hello @Bingyang Wei. Do you have a video teaching how to create an api with refreshToken and accessToken?
@ramonjales9941
9 ай бұрын
Amazing!
@MotiveEdge-o5d
Жыл бұрын
you earn a subscriber
@BingyangWei
Жыл бұрын
Thank you! Have a great day.
@kienduy6458
Жыл бұрын
Thanks for the clear explanation. But I want to ask is there any solution to replace HandlerExceptionResolver on webflux?
@BingyangWei
Жыл бұрын
Sorry, I have not used WebFlux.
@Shintarobrl
10 ай бұрын
why not using @Autowired?
@BingyangWei
10 ай бұрын
Thanks for your question. Constructor injection is favored over field injection for multiple reasons: 1. Explicit Dependencies: The required dependencies are unmistakably outlined. This ensures that no dependencies are overlooked during testing or when the object is instantiated under different conditions. 2. Immutable Dependencies: By allowing dependencies to be declared as final, constructor injection enhances robustness and thread safety. 3. Simplified Dependency Setting: There's no need for Java reflection to establish dependencies.
@akifhasdemir9740
Жыл бұрын
Hi, Thanks for that great video. I also want to handle the exception when the request's authorization type is different from "Bearer Token" (likne no auth, basic auth etc.). How can I handle that? Thanks in advance.
@thomashamerla5329
7 ай бұрын
Did you get it how to do this ? :p - have the similar problem :D
@thomashamerla5329
7 ай бұрын
I got it Dude ! Just add this excerption to ur controllerAdvice : InsufficientAuthenticationException, make sure it is from it : import org.springframework.security.authentication.InsufficientAuthenticationException; :DDD
When I add the CustomBasicAuthenticationEntryPoint to the SecurityConfig I get the following exception: java.nio.channels.ClosedChannelException: null Any idea why?
Пікірлер: 26