jiangping
2025-07-14 996154fb8fab5468cdfc99efbab606605fb762e1
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.doumee.core.utils;
   
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; 
 
/**
 * 工具包
 * @author  dm
 * @since 2025/03/31 16:44
 */
@Component
public final class Utils {
 
    /**
     * Spring上下文
     */
    public static ApplicationContextHelper SpringContext;
 
    /**
     * 地区处理
     */
    public static final Location Location = new Location();
 
    /**
     * Http请求处理
     */
    public static final Http Http = new Http();
 
    /**
     * 用户客户端信息
     */
    public static final UserClient User_Client = new UserClient();
 
    /**
     * 服务端信息
     */
    public static final Server Server = new Server();
 
    /**
     * 监听器
     */
    public static final Monitor Monitor = new Monitor();
 
    /**
     * MyBatis Plus处理
     */
    public static final MyBatisPlus MP = new MyBatisPlus();
 
    /**
     * 安全处理
     */
    public static Secure Secure;
 
    /**
     * 日期处理
     */
    public static final DateHelper Date = new DateHelper();
 
    /**
     * 线程池
     */
    public static final ThreadPool ThreadPool = new ThreadPool();
 
    /**
     * AES
     */
    public static AES AES;
 
    @Autowired
    public void setSpringContext(ApplicationContextHelper springContext) {
        Utils.SpringContext = springContext;
    }
 
    @Autowired
    public void setSecure(Secure secure) {
        Utils.Secure = secure;
    }
 
    @Autowired
    public void setAES (AES aes) {
        Utils.AES = aes;
    }
 
}