mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
package com.dg.core.db.manual.mapper.util;
 
import org.springframework.beans.factory.InitializingBean;
import org.springframework.stereotype.Component;
import org.springframework.beans.factory.annotation.Value;
@Component
public class ConstantPropertiesUtil implements InitializingBean {
 
    @Value("${wx.open.app_id}")
    private String appId;
 
    @Value("${wx.open.app_secret}")
    private String appSecret;
 
    @Value("${wx.open.redirect_url}")
    private String redirectUrl;
 
    @Value("${yygh.baseUrl}")
    private String yyghBaseUrl;
 
    public static String WX_OPEN_APP_ID;
    public static String WX_OPEN_APP_SECRET;
    public static String WX_OPEN_REDIRECT_URL;
 
    public static String YYGH_BASE_URL;
 
    @Override
    public void afterPropertiesSet() throws Exception {
        WX_OPEN_APP_ID = appId;
        WX_OPEN_APP_SECRET = appSecret;
        WX_OPEN_REDIRECT_URL = redirectUrl;
        YYGH_BASE_URL = yyghBaseUrl;
    }
}