package com.engine.organization.util; import com.engine.organization.annotation.Log; import java.lang.reflect.Method; /** * @Author weaver_cl * @Description: TODO * @Date 2022/4/27 * @Version V1.0 **/ public class LogAspect { Class clazz; Method method; public LogAspect(Class clazz,Method method) { this.clazz = clazz; this.method = method; } public void start() { try { boolean f = method.isAnnotationPresent(Log.class); if (f) { Log annotation = method.getAnnotation(Log.class); String value = annotation.value(); String description = annotation.description(); } Method[] methods = clazz.getMethods(); } catch (Exception e) { } } }