Spring Tutorial 33 - Naming Conventions and Custom Advice Annotations

  Рет қаралды 104,288

Java Brains

Java Brains

Күн бұрын

Пікірлер: 22
@nehaagrawal30
@nehaagrawal30 11 жыл бұрын
This is so amazing. Never came across such handy tip . Thanks!!
@MukulTripathi
@MukulTripathi 13 жыл бұрын
So clear, your tutorials are so perfect.
@MrTestme123
@MrTestme123 7 жыл бұрын
beautiful approach using custom annotations
@arnavsingh0
@arnavsingh0 10 ай бұрын
This is a gem.😍
@leocool62
@leocool62 4 жыл бұрын
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?
@adarshverma3372
@adarshverma3372 3 жыл бұрын
yeah, it should be ||
@sayankundu1824
@sayankundu1824 Жыл бұрын
yes..
@pr0master
@pr0master 12 жыл бұрын
Handy tips? Damn!!! Really handy!!! Thanksssssss!!
@vinothkumar66
@vinothkumar66 5 жыл бұрын
Nicely presented. thanks
@Lyscarou
@Lyscarou 5 жыл бұрын
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'.
@richard2845
@richard2845 7 жыл бұрын
Thank you for your tutorial
@mouradmansour4666
@mouradmansour4666 10 жыл бұрын
thanks for your great job
@greenbaylee2885
@greenbaylee2885 9 жыл бұрын
some video about mybatis will be great!!
@SAN23TOOR
@SAN23TOOR 4 жыл бұрын
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-course
@off-course 4 жыл бұрын
Can we use the annotation at class level to apply the advice to all methods?
@pankajsinghal1
@pankajsinghal1 7 жыл бұрын
7:46
@DayanandaGC
@DayanandaGC 8 жыл бұрын
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
@Pioplu
@Pioplu 7 жыл бұрын
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".
@raghebadel5689
@raghebadel5689 12 жыл бұрын
Thanks for you tutorial, but why do we need to Service package, or shapeService, can you explain it please
@sathwikchintalapudi1243
@sathwikchintalapudi1243 6 жыл бұрын
@Loggable really amazing
@mikesca1980
@mikesca1980 13 жыл бұрын
thanks
@LeBadman
@LeBadman 12 жыл бұрын
Koushik, your annotation example didn't work for me. It only worked when I used this: @Around("execution(@Loggable * *.*(..))") Why?
Spring Tutorial 34 - AOP XML configuration
13:03
Java Brains
Рет қаралды 106 М.
Spring Tutorial 35 - Understanding AOP Proxies
16:34
Java Brains
Рет қаралды 125 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
#71 What is Annotation in Java
7:32
Telusko
Рет қаралды 94 М.
Spring Tutorial 32 - Around Advice Type
14:54
Java Brains
Рет қаралды 116 М.
Microservices explained - the What, Why and How?
18:30
TechWorld with Nana
Рет қаралды 905 М.
Spring Tutorial 31 - After Advice Types
20:58
Java Brains
Рет қаралды 139 М.
Spring Tutorial 28 - Pointcuts and Wildcard Expressions
19:25
Java Brains
Рет қаралды 203 М.