dengzedong
2024-12-19 85b2001c0ec2f1adc598db3bf47ad457dcca7074
提交 | 用户 | 时间
e7c126 1 package com.iailab.framework.operatelog.config;
H 2
3 import com.iailab.framework.operatelog.core.service.LogRecordServiceImpl;
4 import com.mzt.logapi.service.ILogRecordService;
5 import com.mzt.logapi.starter.annotation.EnableLogRecord;
6 import lombok.extern.slf4j.Slf4j;
7 import org.springframework.boot.autoconfigure.AutoConfiguration;
8 import org.springframework.context.annotation.Bean;
9 import org.springframework.context.annotation.Primary;
10
11 /**
12  * 操作日志配置类
13  *
14  * @author HUIHUI
15  */
16 @EnableLogRecord(tenant = "") // 貌似用不上 tenant 这玩意给个空好啦
17 @AutoConfiguration
18 @Slf4j
19 public class IailabOperateLogConfiguration {
20
21     @Bean
22     @Primary
23     public ILogRecordService iLogRecordServiceImpl() {
24         return new LogRecordServiceImpl();
25     }
26
27 }