AOP實現用戶操做日誌記錄

1、自定義註解 在使用aop切面攔截的時候須要統一的日誌描述,這個日誌描述,咱們使用自定義註解來爲每一個方法添加日誌自定義描述內容。java 建立一個自定義註解類web @Target({ElementType.PARAMETER, ElementType.METHOD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @int
相關文章
相關標籤/搜索