leutu
2024-08-20 bbd50cf91c9a8c7cfe48b3c00dde205b7049ae3b
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);
    }
}