Link to home
Start Free TrialLog in
Avatar of Sathish David  Kumar N
Sathish David Kumar NFlag for India

asked on

how to create annotation for interceptor

how to create annotation for interceptor

i have created one standalone application which will used by other application for audit .

in my standalone application I have created interceptor which will capture my request and response structure.

I have created this application as jar and i will plane to use in other application ?


other also spring boot application  my question is

1. is interceptor will work if i use as Jar ? no need to use any other code ?
2. if not then how we will create custom annotation for this interceptor ?

Regards,
Sathish Kumar N
Avatar of girionis
girionis
Flag of Greece image

Your interceptor will work if

1) your jar is in the classpath
2) they use the interceptor in their source code.
Avatar of Sathish David  Kumar N

ASKER

but interceptor  call 2 times ?
I don't understand you.
my interceptor code prehandling call 2 times ??
I dont understand why its calling two times ?
You might be calling it twice.
prehandling ? interceptor we cant call right ?
I am not sure what you mean. Interceptor should be called automatically.
ASKER CERTIFIED SOLUTION
Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial