Timestamps - 0:00 Introduction 0:50 Project Work 1:27 List al = Arrays.asList(1,3,2,4,3,1,2); Output - {4,3,2,1} 2:50 Output Based Question 4:09 SQL question 5:28 Use of default keyword vs default method 6:23 How to create Custom Exception 7:49 PUT vs Patch 8:43 Path Param vs Query Param 10:30 @JsonIgnore vs @Transient 11:56 @Controller vs @RestController 12:40 How to provide Role based authentication 14:22 Authentication vs Authorization 16:35 Unique vs Composite Key 18:36 @Mock vs @InjectMocks 20:20 verify() in mockito 21:17 map vs flat map 24:05 Use of @JoinColumn 25:15 select selected columns in JPA 26:48 Use of Kubernetes
The impl of security in role based access control is an older version. In later versions after Spring boot 2.7 we make bean of SecurityFilterChain and configure other components
@@debjeetroy i really appreciate what you are doing, its very helpful for many of us trying to clear an interview. But i think the answers could have been more researched. You don’t need to throw any exception from your custom exception class as I understand. Also a response from a @controller class always need a view to be displayed, whereas a @restcontroller class response doesn’t need a view, you can simply hit the url and json response will be displayed in browser unlike @controller class.
@@sagardas09 Thank you for your feedback. I will surely work on it. As per my knowledge if you are making your own custom exception and if you are not using @RestControllerAdvice feature of Spring boot to handle exceptions then you have to throw exception from that custom class to inherit all the properties and make that class eligible to get thrown from other class when thrown from method definition using throw new class("message"). I hope I understood your query properly and it will be good if you can give a use case when we are creating custom exception class but not extending it. I will also learn that. Thank you. .... And yes difference between Controller and Rest controller can be many and yours one is right as well. Thank you for explaining it.
@@debjeetroy a @restcontrolleradvice or @controlleradvice is for globalexception handler. Here you are talking about a custom exception class. No need to get into spring mvc here i guess its plain old java It is simply like this… class MyException extends Exception { Public MyException(String msg){ super(msg)}}
@@debjeetroy a @restcontrolleradvice is to be used creating a global exception handler. There may be more than one custom/normal exceptions defined in a global exception handler. But here we are talking about a custom exception handler, its simply plain old java. No need to bring spring concepts here. Its like.. class MyException extends Exception{ public MyException (String msg){ super(msg)}}
No need to put extra effort for showing on ide. Let the interviewees practice on their own. Your content is very good and keep publishing more videos like this .