springAOP中@within和@annotation的区别

2021-04-14  本文已影响0人  无尘粉笔

@within和@annotation的区别:
@within 对象级别
@annotation 方法级别

参数上的annotation
Method.getParameterAnnotations()
或Method.getAnnotations();

上一篇 下一篇

猜你喜欢

热点阅读