Spring Boot 使用AOP切面實現後臺日誌管理模塊

設計原則和思路:java 元註解方式結合AOP,靈活記錄操做日誌 可以記錄詳細錯誤日誌爲運維提供支持 日誌記錄儘量減小性能影響 1.定義日誌記錄元註解redis 2.定義用於記錄日誌的實體類spring import java.io.Serializable; import com.leon.common.util.StringUtils; import com.fasterxml.jackson
相關文章
相關標籤/搜索