goupan
2024-04-03 5506e9a45e717ffcb67ec313b5a4e8206d9b3a39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package cn.stylefeng.roses.kernel.system.starter;
 
import cn.stylefeng.roses.kernel.system.modular.home.aop.InterfaceStatisticsAop;
import cn.stylefeng.roses.kernel.system.modular.home.timer.InterfaceStatisticsTimer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
 
/**
 * 首页统计数据的装载
 *
 * @author xixiaowei
 * @date 2022/2/9 17:57
 */
@Configuration
public class GunsSystemHomeStatisticsAutoConfiguration {
 
    /**
     * 接口统计的AOP
     *
     * @author xixiaowei
     * @date 2022/2/9 14:00
     */
    @Bean
    public InterfaceStatisticsAop interfaceStatisticsAspect() {
        return new InterfaceStatisticsAop();
    }
 
    /**
     * 定时将统计数据存入数据库
     *
     * @author xixiaowei
     * @date 2022/2/9 17:58
     */
    @Bean
    public InterfaceStatisticsTimer interfaceStatisticsHolder() {
        return new InterfaceStatisticsTimer();
    }
 
}