Commit 6e337781 authored by yanzg's avatar yanzg

默认日期格式的支持

parent ee2e14c8
...@@ -74,7 +74,8 @@ public class MqAspect extends BaseRequestAspect { ...@@ -74,7 +74,8 @@ public class MqAspect extends BaseRequestAspect {
Method targetMethod = methodSignature.getMethod(); Method targetMethod = methodSignature.getMethod();
Annotation[] annotations = targetMethod.getAnnotations(); Annotation[] annotations = targetMethod.getAnnotations();
for (Annotation annotation : annotations) { for (Annotation annotation : annotations) {
if (annotation.getClass().getSimpleName().indexOf("RabbitListener") >= 0) { if (annotation.annotationType() != null
&& annotation.annotationType().getSimpleName().equals("RabbitListener")) {
return true; return true;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment