leutu
2024-08-13 75e50e0966d7165e04100a713267ece438482e19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.skyline.electricity.utils;
 
import org.springframework.context.annotation.*;
import org.springframework.core.env.*;
import javax.annotation.*;
 
@Configuration
public class PropertiesConfig
{
    @Resource
    private Environment env;
    
    @PostConstruct
    public void setProperties() {
        PropertiesUtil.setEnvironment(this.env);
    }
}