This is so amazing. Never came across such handy tip . Thanks!!
@MukulTripathi13 жыл бұрын
So clear, your tutorials are so perfect.
@MrTestme1237 жыл бұрын
beautiful approach using custom annotations
@arnavsingh010 ай бұрын
This is a gem.😍
@leocool624 жыл бұрын
Amazing. One query though, at 5:48 should it be && or ||. Because if we specify &&, it will try to satisfy both the condition and only then will apply the advice. So, if you call "shapeService.getCircle();" it wont call the advice because the other condition fails. So, if we want to apply the advice to both we should be using || in this case?
For those that the custom annotation @Loggable doesn't work, please notice that when creating the Loggable interface, it is defined as follows: public *@* interface Loggable { ... }. Don't forget to use the @ symbol before 'interface'.
@richard28457 жыл бұрын
Thank you for your tutorial
@mouradmansour466610 жыл бұрын
thanks for your great job
@greenbaylee28859 жыл бұрын
some video about mybatis will be great!!
@SAN23TOOR4 жыл бұрын
i have a question., is it possible to have pointcut for the Loggable interface fields like defining custom annotation. @interface Loggable{ string value default ""; } now in the class i will annotate as below. @Loggable (value = "PERSON" public class person { // getters // setters } is it possible to declare pointcut as below @Around("@annotation(Loggable(value = 'PERSON'))")
@off-course4 жыл бұрын
Can we use the annotation at class level to apply the advice to all methods?
@pankajsinghal17 жыл бұрын
7:46
@DayanandaGC8 жыл бұрын
Hi Kaushik, Your tutorials are so good and understandable with no doubts. One more help i need from. @Around annotation with cusom annoation @Loggable is not working and it is throwing below error "nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut annotation" Please help me
@Pioplu7 жыл бұрын
I'm late, but maybe it will help others. I had same error, then I realized the pointcut string starts with "@annotation", not just "annotation".
@raghebadel568912 жыл бұрын
Thanks for you tutorial, but why do we need to Service package, or shapeService, can you explain it please
@sathwikchintalapudi12436 жыл бұрын
@Loggable really amazing
@mikesca198013 жыл бұрын
thanks
@LeBadman12 жыл бұрын
Koushik, your annotation example didn't work for me. It only worked when I used this: @Around("execution(@Loggable * *.*(..))") Why?