类 OperationLogHandlerImpl

  • 所有已实现的接口:
    OperationLogHandler, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    @Component
    public class OperationLogHandlerImpl
    extends Object
    implements OperationLogHandler, org.springframework.context.ApplicationContextAware
    操作日志处理实现
    作者:
    guer
    • 构造器详细资料

      • OperationLogHandlerImpl

        public OperationLogHandlerImpl()
    • 方法详细资料

      • add

        @Async
        public void add​(String operationContent,
                        Long userId,
                        Object... operationParams)
        从接口复制的说明: OperationLogHandler
        添加操作记录
        指定者:
        add 在接口中 OperationLogHandler
        参数:
        operationContent - 操作内容
        userId - 用户ID
        operationParams - 操作参数
      • setObjectMapper

        @Autowired
        public void setObjectMapper​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        指定者:
        setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
        抛出:
        org.springframework.beans.BeansException