于紫祥_1901
2020-11-11 8d3e4f4b795f44e6d59facb11d7fc0918376f4f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.moral.config;
 
import javax.annotation.PostConstruct;
import javax.annotation.Resource;
 
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;
 
import com.moral.common.util.ValidateUtil;
 
 
@Component
public class InjectionConfig {
 
    @Resource
    MessageSource resources;
 
    @PostConstruct
    private void init() {
        ValidateUtil.setResources(resources);
    }
}