Sathish David Kumar N
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
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
ASKER
but interceptor call 2 times ?
I don't understand you.
ASKER
my interceptor code prehandling call 2 times ??
I dont understand why its calling two times ?
I dont understand why its calling two times ?
You might be calling it twice.
ASKER
prehandling ? interceptor we cant call right ?
I am not sure what you mean. Interceptor should be called automatically.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1) your jar is in the classpath
2) they use the interceptor in their source code.